Selenium and Java Interview Questions
Selenium and Java Interview Questions
VM Ware
Java:
----
1. What is Abstract class? Where we will use Abstract Class in java?
2. What is interface? Difference between Abstract class and interface?
3. Difference between normal methods and Abstract methods in Java?
4. Why we are using constructors in java?
5. Difference between overloading and overriding ?
6. Explain "static" keyword in java and it's usage?
7. Why multiple inheritance is not supported in java?
8. Difference between "extend" and "implement" in java?
9. Explain the access specifiers public, Private, protected and default in
HCL
HCL interview Question
===================================
1st technical
From Java
1.What is the Difference between final,finally,finalize
2.what is the difference between Call by value and call by referance
3.How to find out the length of the string without using length function
4.How to find out the part of the string from a string
5.difference between throw & throws
6.What is binding(Early and Late binding)
He give Programes
1.Reverse a number
2.1,2,3,4,5,65,76,5,,4,33,4,34,232,3,2323,
find the biggest number among these
simple string programe.
what is exception types of exception
From manual
what is the testcase technique
why we write test case.
bug life cycle
what are the different status of bug
what is the different between functional and smoke testing
what is STLC.
from Selenium
what is testng and its advantage
how to handle SSl/
how to handle alert
how to take screenshot
give the diagram write a scrpt..
tell me about Project .What are the challenge face during project
what is the difference between RC and webdriver
what is freamwork explain it.
why we use wait statement.
2nd technical
he gives a application & tell to write the scenario
some manual testing concepts.
====================================
HappyestMind & Ness
===================================
Selenium
1.Write the syntax of drop down
2.What is Webdriver-Java interface
3.What is the current Version of Selinum webdriver
4.How to get the text value from text box
5.StrinG x="ABC";
String x="ab"; does it create two objects?
6.write a program to compare the strings
7.Class a
{
}
class b extends a
{
}
A a= new A();
B b=new B();
A a= new B();
B a=new A();
Which is valid and invalid?
8.How to handle differnt type of pop up.(Wnidow,Alerts,Invisible popup)
9.How to handle DropDown menu
10. How to handle SSL certificate
11.How to handle Google search text.
12. How to handle dynamic text box which contains the 3 numbers, get
the number and add the three number and add it other text box.
13.How to handle Ajax Objects
8.Explain webdriver architecture
9.Explain File downloading
10.Explain File attachments other that Auto IT
11.Write the syntax for finding the row count in dynamic web table
12.Differnece between class and Interface
13. What type of class is the string class
14.WHAT are the differnt methods that are used along with Xpath
15.Explain Interface
16 Explain Abstract
17.What is selenum grid
18 what is selenium RC
19.Why is key word drivern frame work only choosen,
1. how to handle dynamic object
2. how to work with button which is in div tag and and u have to click
without using xpath
3. JVM is dependent or independent platform
==========================================
FICO
===========================================
==============================================
SPAN Info tech
=============================================
Selenium question:
Java Qustion
IN parent and child class i have disp() methode , using child class reference how to call
parent disp() methode ?
what is the use of this keyword
how many types execption avilable in java?
================================================
Mind tree interview Question
===================================================
Selenium
1. how to handle dynamic object
2. how to work with button which is in div tag and and u have to click without using xpath
3. JVM is dependent or independent platform
Java
1.JVM is dependent or independent platform
2.diffn bw hashmap and hash set, set and linkedlist, arraylist and vector list , linkedhash set
and hashset
3.abstract and interface
4.throw and throws
5.how to split
6.checked and unchecked exception
7.how to work with azax aplication
8.why sring is immutable
9.wat is the retru ntype of getwindowhandles();
10.what are the types of assertion and what are assertion in java
=================================================
Indicomm Interview Question
================================================
and interface?
6 what is method overriding java what is the use of method
overriding?
7 what is constructor ?use of constructor and can i ovverride the
costructor?
8 how to call the super class method in subclass?
9 what is the base class for all java class?tell me the methods?
10 what is hashcode method explain programtically(asked
explain?
12 what is String builder?
13 what is String tokenizer?
14 what is the difference between string and String Buffer?
15 what is the capacity of String Buffer?
16 what is collection ?
17 what is list?
18 what is Arraylist Expain?
19 Write logic for Array to Arraylist?
20 write logic for Arraylist to Array?
21 why vector class is defined Synchronized ?
22 what is exception ?
22 difference between Throw And Throws?
23 what is custom Exception explain?
24 What is finally block?Use of Finally block?explain
25 what happens if exception not found in try catch block?
Then finally block will be Excuted or not
india/all states, need to select the last value of the dropdown list
=============================================
Software AG
=============================================
log file will generated, for each action u do...ex: for gmail, compose mail;> there would be
some log generated....so how to capture that log...
how you will make sure that page has been loaded...
==================================================
Adobe Interview Questions:
==================================================
1. Retrieve the test data from excel sheet, put in in google search bar, click on search button
and click on the first link opened in google search.
2. Write a program to check whether the string can be a palindrome. for example if the string
aab(it is not a palindrom string). replace the characters in a string like aba, baa etc. and check
that can be a palindrome string.
3. How will you Identify the webelement that has same property values?
4. write a pgm to return the no.of rows and columns in a webtable?
5. Write a prm to return the row and colum value like(3,4) for a given data in web table?
====================================================
EBAY InterView Questions
====================================================
TESTNG QUESTIONS ASKED IN EBAY
1. What is the use of TestNG/Junit ?
2. What is parameterized testing?
3. How can u achieve parameterized testing using TestNG?
With the help of 2 annotations @Parameters and @Dataprovider.
4. Can you map test method names in XML file along with class names?
Yes, we can do it please see below ex:
<classes>
<class name="test.IndividualMethodsTest">
<methods>
<include name="testMethod" />
</methods>
</class>
</classes>
7. How will you execute only selected test methods in particular Test class?
8. How do you fail test cases in TestNg?
9. Can we execute test cases parallely in TestNg?
10. How can we control the order of test method invocation?
We need to create Dependency.
TestNG allows you to specify dependencies either with annotations or in XML.:
You can use the attributes dependsOnMethods or dependsOnGroups, found on the @Test
annotation.
Alternatively, you can specify your group dependencies in the testng.xml file. You use the
<dependencies> tag to achieve this:
11. How can you make sure test methods which are run in a certain order doesn't really
depend on the success of others ?
By adding "alwaysRun=true" in your @Test annotation.
================================================
ACCOLITE INTERVIEW QUESTIONS:
================================================
============================================
Exlliant Interview qustions
===========================================
===========================================
CalSoft labs interview qustions?
============================================
===================================================
Bosch interview Qustions
==================================================
====================================================
Techmetric interview
====================================================
1.what is webdriver?
2.where all of abstract methods of webdriver are implemented?
3.how to handle dynamics webelement?
5.how to fetch data from excel sheet?
6.how to write xpath,css?
7.how to connect to the database?
==================================================
HappiestMind interview questions
=================================================
1.what is collection in java.
2.play with any of the collections.
3.scarch a letter in string?
4.reverse a number?
5. sorting ana array?
6 .What is page object model?
7between css and xpath which one is faster?
8.what is exception.tell some exception.
9.tell some exception you get while writing code.
10.how to handle exception ?
11.is it agood approche to throw an exception?
14.how to generate a report?
15.how many testcase you have automated.
16.how many test case you run in a batch execution?
17.what is the minimum time to run a batch execution?
18.tell me complex secnarion of your application?
19.challenges you faced in automation.
20.how to upload file other than Autoit?
21.negative testcase for a pen?
22.how to run a test 3times if the test fail ?
==========================================
NEss
==========================================
1. what is the diff between STRING and STRING BUFFER.
2. WAP For String Reverse.
3. Find how many duplicate values in Array List.
4. string [] str={"abc","efg","fgh"};
conver array to string.
5. about file downloading and uploading.
6. what is PageFactory explain.
7. explain method overloading and overriding .. how practically
implemented in ur project.
8. what are the challenges of SELENIUM.
9. explain the features of JAVA.
10. how do u say JAVA is platform independent.
11. is JVM platform independent.
12. write code for data fetch of excelSheet.
13. explain how do u access DB in selenium.
14. explain ANT and what are the pros and cons.
15. how do u achieve parallel execution in TestNG.
16. what is the dictionary meaning of SELENIUM.
17. accronomy of ANT and POI.
=====================================================