Core Java Basics
- What are the key features of Java?
- Explain the concept of JVM, JRE, and JDK.
- What is the difference between
==
and .equals()
in Java?
- Explain the concept of
final
, finally
, and finalize
.
- What is the difference between
String
, StringBuilder
, and StringBuffer
?
- What are Java's access modifiers, and how do they work?
- Explain the concept of overloading and overriding in Java.
- What is the difference between
static
and instance methods?
- How does Java achieve platform independence?
- What is the difference between
abstract
classes and interfaces?
Object-Oriented Programming (OOP)
- What are the four pillars of OOP in Java?
- Explain the difference between composition and inheritance.
- What is polymorphism? Provide examples.
- How does encapsulation improve code security?
- Can you explain the concept of multiple inheritance in Java?