Core Java Interview Questions Partial
Core Java Interview Questions Partial
1. What is Java?
JDK (Java Development Kit) is a complete environment for Java development. JRE (Java Runtime
Environment) provides the runtime environment. JVM (Java Virtual Machine) is responsible for running Java
bytecode.
The main method serves as the entry point for any standalone Java application. Its signature is public static
The == operator compares memory addresses, while the equals() method compares the actual content of the
objects.
An abstract class is a class that cannot be instantiated. It can have both abstract methods (without a body)
A constructor is a special method used to initialize objects. It has the same name as the class and no return
type.
Page 1
Core Java Interview Questions and Answers
Method overloading allows multiple methods with the same name but different parameters. Method overriding
A singleton class ensures that only one instance of the class is created. It is commonly used for resource
sharing.
Access modifiers define the scope of access to classes, methods, and variables. The main modifiers are
Page 2