0% found this document useful (0 votes)
6 views11 pages

Java, Python, Selenium Interview Questions

Combined Interview question for Java Selenium Playright pyhton

Uploaded by

kapiltayde21
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views11 pages

Java, Python, Selenium Interview Questions

Combined Interview question for Java Selenium Playright pyhton

Uploaded by

kapiltayde21
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

Here are commonly asked Java + Python + Selenium

interview questions—grouped and easy to revise.


If you want answers also, just tell me and I’ll provide
them.

🟦 JAVA Interview Questions


Core Java

1. What is the difference between JDK, JRE, JVM?


2. Explain OOPs concepts with examples.
3. What is polymorphism? Explain compile-time vs
run-time.
4. What is inheritance and types of inheritance in Java?
5. Explain abstract class vs interface.
6. What is method overloading and overriding?
7. Explain String vs StringBuilder vs StringBuffer.
8. What are access modifiers in Java?
9. Difference between == and equals().
10. What is final, finally, finalize()?
11. Explain HashMap vs Hashtable.
12. What is ConcurrentHashMap? Why is it
thread-safe?
13. What is Exception handling? Difference
between checked and unchecked exceptions.
14. What are Collections in Java?
15. Difference between ArrayList vs LinkedList.
16. What is multithreading?
17. Explain synchronization in Java.
18. What is a constructor and its types?
19. What is static keyword used for?
20. What is Garbage Collection in Java?

🟩 PYTHON Interview Questions


Core Python

1. What are mutable and immutable types in Python?


2. Difference between list, tuple, set, dictionary.
3. What is PEP 8?
4. Explain Python’s memory management.
5. What are decorators in Python?
6. What is a lambda function?
7. Difference between deep copy and shallow copy.
8. What are generators?
9. Explain ***args and kwargs.
10. What is list comprehension?
11. What is the Global Interpreter Lock (GIL)?
12. Explain OOPs in Python.
13. What are modules and packages?
14. Difference between Python 2 vs Python 3.
15. How does exception handling work in Python?
16. What is a virtual environment?
17. What is pip?
18. Explain polymorphism in Python.
19. How to handle files in Python?
20. What is database connectivity in Python?

🟧 SELENIUM Interview Questions


Selenium WebDriver Basics

1. What is Selenium? Components of Selenium.


2. What is Selenium WebDriver?
3. Explain locators—id, name, xpath, cssSelector.
4. Difference between Xpath and CSS selector.
5. What are implicit wait, explicit wait, fluent wait?
6. How to handle frames in Selenium?
7. How to handle multiple windows?
8. What are WebDriver methods?
9. How to handle dropdown in Selenium?
10. What is PageFactory?
11. What is Page Object Model (POM)?
12. How to handle alerts/popups?
13. Difference between close() vs quit().
14. What is Actions class?
15. How to take screenshots in Selenium?
16. Explain headless browser testing.
17. What are selenium exceptions?
18. What is TestNG/JUnit?
19. How do you manage test data?
20. What is CI/CD integration with Selenium?

🟥 Java + Selenium Combined Questions

1. How do you write POM classes in Java?


2. What is the difference between List and
WebElement?
3. How do you manage synchronization in Java
Selenium?
4. How to handle collections while locating multiple
elements?
5. How do you use OOPs concepts in Selenium
framework?
6. What kind of framework have you used
(Hybrid/Keyword/Data-driven)?
7. How to implement interfaces in Selenium
automation?
8. How to use Java Streams to filter WebElements?
9. How do you write custom wait methods in Java?
10. Explain your automation framework
architecture.
🟩 Python + Selenium Combined Questions

1. How do you write Selenium automation using


Python classes?
2. What is the role of unittest or pytest in automation?
3. How to use fixtures in pytest?
4. How do you handle dynamic XPaths in Python-
Selenium?
5. How to work with WebDriverWait in Python?
6. Explain logging in Python automation.
7. How do you store test data in Python Selenium?
8. Explain Page Object Model in Python.
9. How to create a hybrid framework in Python
Selenium?
10. How to integrate Python Selenium with
Jenkins/GitHub Actions?

If you want, I can also give:


⭐ Answers for all questions
⭐ One-word rapid-fire questions
⭐ Java + Selenium real-time scenario questions
⭐ Python automation coding questions
Just tell me!
Here are very simple, easy-to-remember answers for
Java + IDE interview basics.
Perfect for beginners or quick revision.

🟦 Easy Java Basic Questions & Answers


1️⃣What is Java?

Java is a programming language used to build


applications.
It is platform-independent, meaning it runs on any OS.

2️⃣What is JDK?

JDK = Java Development Kit


It contains tools to write, compile, and run Java
programs.

3️⃣What is JRE?

JRE = Java Runtime Environment


It helps run Java programs. It does not contain
development tools.
4️⃣What is JVM?

JVM = Java Virtual Machine


It runs Java bytecode.
It makes Java platform-independent.

5️⃣What is a Class?

A class is a template or blueprint for objects.

6️⃣What is an Object?

Object is something that has state (data) and behaviour


(methods).

7️⃣What is OOP?

OOP = Object-Oriented Programming


Main concepts: Encapsulation, Inheritance,
Polymorphism, Abstraction

8️⃣What is Inheritance?

One class inherits properties from another class. (“child


→ parent”)
9️⃣What is Polymorphism?

Same method behaves differently in different situations.


Examples: method overloading, method overriding

🔟 What is Encapsulation?

Hiding data using private variables and public methods


(getters/setters).

1️⃣1️⃣What is Abstraction?

Showing only important details and hiding the rest.

1️⃣2️⃣What is a Constructor?

A special method that runs when an object is created.

🟩 Easy IDE (Integrated Development


Environment) Q&A
1️⃣What is an IDE?

IDE = A software that helps you write, run, and debug


code easily.
2️⃣Popular Java IDEs?

 Eclipse
 IntelliJ IDEA
 NetBeans

3️⃣Why do we use an IDE?

 Highlights errors
 Auto-completion
 Easy debugging
 Fast development

4️⃣Difference between Eclipse and IntelliJ?

 Eclipse = Free, lightweight


 IntelliJ = Smart features, faster suggestions, better
debugging

5️⃣How to run a Java program in IDE?

 Create a project
 Create a class
 Write code
 Click Run button
6️⃣What is a Workspace?

A workspace is a folder where the IDE stores all your


projects.

7️⃣What is Auto-complete?

IDE feature that suggests code as you type (e.g., method


names).

8️⃣What is Debugging?

Process of finding and fixing errors using breakpoints.

9️⃣What is a Build Path?

It tells the IDE which libraries your project needs.

🔟 What are Plugins?

Extra tools you can add to IDE to improve features.

If you want, I can also give:


✔ Super easy Java coding questions
✔ One-line interview answers
✔ Easy Selenium + Java combined Q&A

You might also like