0% found this document useful (0 votes)
64 views

Questions & Answers (Java)

This document contains 15 sets of interview questions related to software testing concepts like XPath, CSS selectors, Java, Selenium, inheritance, polymorphism and more. Some example questions are about the difference between implicit and explicit waits, how to find and count elements on a page, what a JVM is, and when to use a float vs double in Java. The questions cover core testing topics and vary from beginner to more advanced levels.

Uploaded by

Mohammed Irshadh
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
64 views

Questions & Answers (Java)

This document contains 15 sets of interview questions related to software testing concepts like XPath, CSS selectors, Java, Selenium, inheritance, polymorphism and more. Some example questions are about the difference between implicit and explicit waits, how to find and count elements on a page, what a JVM is, and when to use a float vs double in Java. The questions cover core testing topics and vary from beginner to more advanced levels.

Uploaded by

Mohammed Irshadh
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

Interview questions

Set 1

1. Which one is faster. xpath and css??


2. How will you count all the elements in a webpage?
3. Which method you will use to find the number of elements in
String??
4. Diff between double and float?
5. Find element and find elements??

Set 2

1. What is JVM?
2.  How will you print all the links in a website
3.  What is the difference between depends on method and
depends on groups?
4. Is it possible to deselect an option from a single select
dropdown box?
5.what is the naming convention for a method?

Set 3

1. How will you open a new tab ??


2. How will you automate horizontal scroller?
3. What is difference between catch and finally?
4. Is it possible for a method to be present in more than one
group?
5. Will map accept duplicates?
Set4 :  

1. Is it possible to minimise the window ?


2. How will you use inheritance concept in testing??
3. What is the use of always run attribute?
4. What are all the ways to execute same test case for several
times?
5. Is it possible to click on an element without using find
element method?

Set5:

1. What is “final” keyword in java?


2. Can abstract class have constructors?
3. How will you open link in a new tab?
4. Is string class mutable?
5. What is difference between close and quit?

Set6:

1. What is soft assert?


2. What is difference between implicit and explicit wait?
3. Is it possible to retrieve a single element from set?
4. Is it possible to see head of the queue?
5. What is difference bewttn collection and collections?

Set 7

1. What is length in array?


2. Is it possible to replace elements in set?
3. Can you perform drag and drop operation without using drag
and drop method?
4. What is the use of alwaysRun attribute?
5. What are the two types of report generated by testing?

Set8

1. Difference between implicit wait and explicit wait?


2. How can you switch back from a frame?
3. Can you get browser details using selenium code?
4. What is String in java?
5. Why multiple inheritance is not supported by java?

Set9:

1. What is the difference between double and float?


2. What is widening and narrowing?
3. What is “has relationship”? How can you achieve it?
4. Can you get browser details ?
5. What is absolute xpath?

Set10:

1.Is it possible to run java application without main method?


2. Is it possible to display map elements using for loop?
3. What is testing.xml file?
4. Is it possible to run a single group of test cases from a test
suite?
5.Can we use logical operators in xpath?
Set11:

1. What is difference between list and queue?


2. How to switch between frames?
3. What is pom.xml file in maven?
4. What is maven?
5. What is difference between collection and collections in
java?

Set12:

1. What is the difference between overloading and overriding?


2. Difference between inheritance and polymorphism
3. Defined protected access modifier
4. Use of inheritance
5. Why java does not support multiple inheritance

Set 13:

1. What is difference between constructor and static method?


2. Is private constructors possible?
3. Can we overload private methods?
4. Is overloaded method callable in another class?
5. What is constructor overloading?

Set 14:

1. Can main method be overloaded?


2. What are all the types of inheritance?
3. What is “has a relationship”?
4. What is “is a relationship”?
5. What is use of “this” keyword?
Set 15:

1. What is relative xpath?


2. Can we find an element using its attribute value?
3. Can we check attribute value using explicit wait?
4. Can we check number of elements using explicit wait?
5. Can we make a variable private?

You might also like