Selenium Interview Questions with JAVA | Selenium Interview Questions for Experienced

General: -

• Tell me about yourself?
• What are your Role and Responsibilities?
• Architecture of your current application?
• Which Automation framework you are using in your organization can you tell me the folder structure and flow of your framework?

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 list = new ArrayList() and ArrayList list = new ArrayList(); • 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?