Java Interview Questions
- Write a Java program to convert uppercase letters to lowercase.
- Find the second largest number in an array using Java.
- Explain OOPs concepts with real-world examples.
- Does Map support null keys?
- Can we declare constructor static in Java?
- Can we override and overload static methods in Java?
- Can we create public static final variables in Java?
- How to call constructors of other classes and same class?
- Explain Exceptions hierarchy in Java.
- Explain final, finally, and finalize.
- Difference between HashMap and Hashtable.
- StringBuilder vs StringBuffer.
- How to handle NullPointerException in Java?
- Difference between ArrayList and LinkedHashSet.
- Explain streams in Java and their usage.
Selenium Interview Questions
- Describe your test automation framework and its components.
- Describe how to switch between frames in Selenium with a practical scenario.
- What is the difference between CSS Selectors and XPath?
- Explain Page Factory in Selenium and its annotations.
- What is the purpose of a constructor in Page Factory?
- Different waits in Selenium and their usage.
- Can we open a browser without creating a WebDriver object in Selenium?
- Difference between driver.close() and driver.quit().
- How to handle dynamic dropdowns in Selenium?
- What is Fluent Wait in Selenium?
- How to simulate keyboard keys in Selenium?
- How to upload a file in Selenium?
- Can we take a full-page screenshot in Selenium?
- What is Selenium Grid and when to use it?
- How is Selenium 4 different from Selenium 3?
- What are Relative Locators in Selenium 4?
- What is Chrome DevTools Protocol (CDP) in Selenium 4?
- How do you run Selenium tests in Docker containers?