Core Java Interview Questions
Core Java Interview Questions
1. What is Java?
17. What is a String in Java? How is it different from a StringBuffer and StringBuilder?
20. Explain the concept of exceptions in Java. What is the difference between checked and
unchecked exceptions?
25. What are Java collections? Explain some commonly used collections.
31. What are inner classes and anonymous inner classes in Java?
34. Explain the difference between `public`, `protected`, `default`, and `private` access modifiers.
40. What is the difference between `==` operator and `instanceof` operator?
43. What are the main differences between Java 8 and previous versions of Java?