Altimetrik Android Interview Questions

What is Interface and Abstractclass?

The interface is defined by a blueprint that can be used to implement a class. The interface does not contain any concrete methods. All the methods of an interface are abstract methods. A class which has the abstract keyword in its declaration is called abstract class. Abstract classes should have at least one abstract method. , i.e., methods without a body. It can have multiple concrete methods

String Stringbuffer
String is slow and consumes more memory when you concat too many strings because every time it creates new instance. StringBuffer is fast and consumes less memory when you cannot strings.
Methods are not synchronized All methods are synchronized in this class
String class is immutable. StringBuffer class is mutable.

3 How to get the title of the page?

The following method can be used to get the title of the page, wd.get(“http://www.abcd.com/”); at = wd.getTitle(); System.out.println(at);

How to check if a button is enabled on the page?

Selenium Webdriver is an open-source collection of APIs which is used for testing web applications . Selenium web driver provides one method called – isEnabled which can be used to check if the button is enabled or disabled in Selenium Webdriver in Java.

Use of set – collection

Collections in java is a framework that provides an architecture to store and manipulate the group of objects Collections. In java is a framework that provides an architecture to store and manipulate the group of objects

2 Use of javac and java.

Technically, javac is the program that translates Java code into bytecode (.class file) – an intermediate format which is understandable by the Java Virtual Machine (JVM). And java is the program that starts the JVM, which in turn, loads the .class file, verifies the bytecode and executes it. javac and java are the cornerstones of the Java programming language. All editors or IDEs rely on these tools for compiling and executing Java applications.

Difference between hashset and hashtable.

Hashset Hashtable
HashSet permits to have a single null value It does not allow null for both key and value
HashSet is not Synchronized but can be synchronized externally HashTable is Synchronized.
HashSet uses add method to insert into hashset HashTable uses put method to insert into hashtable

1 What are the limitations of Selenium?

  • Open Source Forums
  • No support for REST and SOAP Platforms
  • No Reporting capability
  • Testing
  • 2 Have you use data structures in your project?

    Explain your experience and skills set and then rate yourself at out of 10.

    Selenese is the set of selenium commands which are used to test your web application. Tester can test the broken links, existence of some object on the UI, Ajax functionality, Alerts, window, list options and lot more using selenese.

    1 What are the different types of locators in Selenium? Types are locators are,

  • Selenium IDE (Integrated Development Environment).
  • Selenium RC(Remote Control)
  • Selenium WebDriver
  • Selenium Grid
  • 1 Print data in IDE – echo

  • Requirement Analysis
  • Test Planning
  • Test case development
  • Test Environment setup
  • Test Execution
  • Test Cycle closure
  • 1 What is the difference between Assert and Verify?

    Assert Verify?
    The false condition, the next text case of the suite will be executed. In case of false condition, the next test step of the same text case will continue.
    There are two types of assets namely hard and soft asserts. There are no categories for verification.

    It is a reference variable that is used to refer parent class objects. Also, the keyword super came into the picture with the concept of Inheritance. Whenever you create the instance of subclass, an instance of parent class is created implicitly which is referred by super reference variable.

    Java for-each loop, findElements() & By.tagName(“a”) method. String manipulation in Java is more easy with the set of methods it has and it is crucial for test automation,

    Altimetrik L2-Java8,SpringBoot,MicroService Interview question

    Related Posts

    Leave a Reply

    Your email address will not be published. Required fields are marked *