Here are some additional basic OOPs (Object-Oriented Programming)
questions:
1. What are the pillars of OOPs?
- Class
- Object
- Encapsulation
- Abstraction
- Inheritance
- Polymorphism
2. What is the difference between a class and an object?
3. What is the purpose of a constructor in a class?
4. Can you explain the concept of inheritance and how it is implemented in
Java?
5. What is polymorphism and how is it achieved in Java?
6. What is the difference between method overloading and method overriding?
7. Can you explain the concept of encapsulation and how it is implemented in
Java?
8. What is the purpose of an interface in Java?
9. Can you explain the concept of abstraction and how it is implemented in
Java?
10. What is the difference between a static and non-static method in Java?
11. Can you explain the concept of composition in Java?
12. What is the purpose of a abstract class in Java?
13. Can you explain the concept of coupling and cohesion in OOPs?
14. What is the difference between a shallow copy and a deep copy of an
object in Java?
15. Can you explain the concept of method hiding and method overriding in
Java?
16. What is super keyword?
17. How do you implement multiple inheritance in Java?
18. What is the purpose of the "super" keyword in Java?
19. What is the difference between a static method and an instance method?
20. Can you explain the concept of polymorphism and how it is achieved in
Java?
21. What is the purpose of the "this" keyword in Java?
22. What is the purpose of the "final" keyword in Java?
23. How do you handle exceptions in Java?
24. Can you explain the concept of multithreading in Java?
25. What is the difference between "==" and ".equals()" in Java?
26. Can you explain the concept of garbage collection in Java?
27. How do you implement a singleton class in Java?
28. Can you explain the concept of serialization and deserialization in Java?
29. Can you explain the concept of a deadlock in Java?
30. Types of classes?
Some Java multithreading interview questions:
1. Can you explain the concept of a thread in Java?
2. How do you create a new thread in Java?
3. Can you explain the concept of a runnable interface in Java?
4. How do you implement a thread-safe class in Java?
5. Can you explain the concept of a synchronized block in Java?
6. Singleton class.
7. How do you implement a deadlock-free program in Java?
Some Java database interview questions:
1. Can you explain the concept of a JDBC in Java?
2. How do you connect to a database using JDBC in Java?
3. Can you explain the concept of a SQL query in Java?
4. How do you execute a SQL query using JDBC in Java?
Basic questions:
1. About java (founder, year of java, latest version, platform dep/indep, why
java language?, purpose, usage in real time)
2. Why platform Independent?
3. JDBC
4. Explain jvm, jre, jdk
5. Features of java
6. Differences between java and other language.
7. Memory allocation in java
Class Memory
Heap Memory
Stack Memory
Program Counter-Memory
Native Method Stack Memory
DATA STRUCTURES
1. What is an array? How is it different from a linked list?
2. What is a stack? How does it work? With types
3. What is a queue? How does it work? With types
4. What is a tree? What are its different types?
5. What is a graph? What are its different types?
6. What is the difference between a set and a map?
7. What is the difference between a list and a vector?
8. How do you implement a basic sorting algorithm like bubble sort or
selection sort?
9. How do you implement a basic searching algorithm like linear search
or binary search?
10. What is the time and space complexity of different data structures
and algorithms?
11. What is Data structure and types?
12. What is list? And types