0% found this document useful (0 votes)
10 views

Core Java Interview Questions

Uploaded by

kondepatiayyappa
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
10 views

Core Java Interview Questions

Uploaded by

kondepatiayyappa
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

Core Java Interview Questions

1. What is Java?

2. What are the main features of Java?

3. What is the difference between JDK, JRE, and JVM?

4. Explain the concept of OOP (Object-Oriented Programming) in Java.

5. What are the main principles of OOP?

6. What is the difference between an interface and an abstract class?

7. What is inheritance in Java?

8. What is polymorphism in Java?

9. What is encapsulation in Java?

10. What is abstraction in Java?

11. Explain method overloading and method overriding.

12. What are constructors in Java?

13. What is the difference between a constructor and a method?

14. What is the purpose of the `static` keyword?

15. What is a final variable, method, and class in Java?

16. What is the difference between `==` and `equals()` in Java?

17. What is a String in Java? How is it different from a StringBuffer and StringBuilder?

18. What is the difference between ArrayList and LinkedList?

19. What is a HashMap in Java?

20. Explain the concept of exceptions in Java. What is the difference between checked and

unchecked exceptions?

21. What is a try-catch block in Java?

22. What is the purpose of the `finally` block?

23. What is multi-threading in Java?


24. How does synchronization work in Java?

25. What are Java collections? Explain some commonly used collections.

26. What is the difference between an Array and an ArrayList?

27. What is a Java Bean?

28. What are the access modifiers in Java?

29. Explain the use of the `transient` keyword in Java.

30. What is serialization in Java?

31. What are inner classes and anonymous inner classes in Java?

32. What is the difference between `throw` and `throws` in Java?

33. What is the significance of the `super` keyword in Java?

34. Explain the difference between `public`, `protected`, `default`, and `private` access modifiers.

35. What is the role of the `this` keyword in Java?

36. What is garbage collection in Java?

37. What is the purpose of the `native` keyword in Java?

38. What is JDBC in Java?

39. Explain the use of the `volatile` keyword in Java.

40. What is the difference between `==` operator and `instanceof` operator?

41. What is an enum in Java?

42. What is a singleton class in Java?

43. What are the main differences between Java 8 and previous versions of Java?

44. What is a lambda expression in Java?

45. Explain the concept of streams in Java.

46. What is a functional interface in Java?

47. What is the default method in interfaces in Java 8?

48. What are method references in Java?

49. What is the purpose of the `Optional` class in Java 8?


50. What is the difference between `Callable` and `Runnable` in Java?

You might also like