Complete Guide For Selenium Interview
Complete Guide For Selenium Interview
( [email protected] )
General:
Java:
• Why String is immutable in Java?
• What is static in java?
• What is final in java?
• What is this word in java?
• What is finally and where do we use it?
• What is Autoboxing and unboxing?
• What is serialization and deserialization?
• What is an abstract modifier?
• What is call by reference and call by value?
• Primitives and Non-Primitives datatypes in Java? String is
primitive or non-primitive?
• What is the method of overloading?
• Why is it important to override HashCode() when you override
equals()?
• What is the difference between a checked and unchecked
exceptions?
• Difference between final, finally, finalize?
• Difference between abstract and interface?
• Difference between String Builder and String Buffer?
• Difference between Array and ArrayList?
• Difference between ArrayList and LinkedList?
• How to define dynamic array?
• Can we create the object for the abstract classes?
• Can we create the object for an interface?
• Can we create constructor of abstract class?
• Can constructor be overloaded. Explain why?
• Can main method be overloaded?
• Can main method be overridden?
• Can we override static method?
• Can we overload static method?
• Can we write non-abstract methods in Interface?
• Can we execute a java program without main method?
• Can we call a non-static variable in static method?
• Can I execute multiple catch blocks without try will it give me
compile time error?
• How to achieve serialization and deserialization?
• If we declare the main method as private what will happen?
• How to check whether the array is empty and null?
• What are the classes available in a list interface?
• What is the use of constructor in java?
• What is Hashmap? Can we store objects in Hashmap and how
to retrieve them?
• Difference between Hash Map and Hash Set?
• Where did you use HashMap in your project and also oops
concepts in your Automation Framework?
• Access modifiers in java and its scope?
• What is meant by Thread?
• What is singleton class in java?
• What is the difference between static binding and dynamic
binding?
• Is Hashmap thread safe?
• What is static, How to set value of static variable
• Can we overload private methods?
• Is it possible to extend Final Class?
• Is it possible to override Static method?
• Is it possible to overload main method?
• Is it possible to initialize a variable present in an Interface?
• What would happen, if multiple inheritance is possible, in Java?
• Explain Exceptions hierarchy in java?
• Explain Set and Map in Java?
• Explain about Inheritance.
• Difference between overloading and overriding?
• Difference Encapsulation and Abstraction ?
• Difference between throw and throws?
• What is polymorphism?
• How and when to use interface?
• Can we instantiate an interface?
• Can we over load main method in Java?
• Can we override constructor?
• Where do you use polymorphism in java?
• What is the system.out.println? and use of it?
• Why do we use finally and how it differs from the final
keyword?
• Can we use multiple catches? When can we use multiple
catches?
• Different between POI and JXL?
• How to prevent the override method in Java?
• Why is the main method static?
• What is the use of static variables?
• What is the difference between list and set?
• How will you access default and protected class?
• Why Object creation not possible in Abstract classes?
• Design pattern in JAVA.
• What All of the classes in the Java Collection Framework have?
• Situations when we use abstraction and Interface - explanation
about loosely coupled and tightly coupled
• Will Java provide default constructor by own ? How
• Difference between Arraylist and Linked List,In which situation
they are used ?
Difference between
List<String> list = new ArrayList<String>() and
ArrayList<String> list = new ArrayList<String>();
• Difference between HashMap and MultiMap?
• In which situation the method should be static and when
non static?
• How does HashMap is implemented using key value pair?
• Suppose you have class and abstract class in class there is a user
defined constructor and main method which one will get
executed first?
• What do you mean by POJO why we use POJO?
• class A have 3 method, class B have 2 method, class B inherited
class A, how do you call method of class A by creating object of
class B?
Selenium:
Java Program:
Maven:
• Lifecycle of Maven
• Use of Maven surfire plugin. If yes, where and why?
• What is the use of pom.xml?
• CI / CD tools
• What is Jenkins?
• How will you handle dependencies in Maven at run time?
• Today we have executed some tests using maven, but
tomorrow when you see that someone deleted all
dependencies from .pom file then in that case will you be able
to execute tests or not.
• Consider you have to write test/suite for different
environments(qa, preproduction, production) and pass
different set of data for each environment. How will you do it
using maven file(Pom.xml)?
• Can you give some basic commands used in maven project?
• How will you configure Jenkins job?
• What are two components Jenkins is integrated with?
• How you will schedule the deployments?
• What is the purpose of version control tool?
• What are the git commands you have used?
• What is difference between group id and artifact id?
• How and when is Jenkins is used in your Automation?
WebService:
Agile:
Managerial round: