Top 70 Java Que
Top 70 Java Que
1. What is Java?
- Java is a high-level, class-based, object-oriented programming language designed to have
as few
implementation dependencies as possible. It's platform-independent and follows the
principle of
"Write Once, Run Anywhere."
3. What is a JVM?
- JVM (Java Virtual Machine) is the engine that provides a runtime environment to execute
Java
bytecode. It makes Java platform-independent by providing a layer of abstraction.
4. What is JDK?
- JDK (Java Development Kit) is a software development environment used for developing
Java
applications and applets. It includes JRE, an interpreter/loader, a compiler (javac), an
archiver (jar),
and documentation tools.
5. What is JRE?
- JRE (Java Runtime Environment) is the part of the JDK that contains everything needed to
run Java
applications, including the JVM, core libraries, and supporting files.
Top 70 Java Questions
6. What is the difference between JDK, JRE, and JVM?
- JDK is a development environment; JRE is the runtime environment, and JVM is the
machine that
runs the bytecode.
8. What is a class?
- A class is a blueprint for creating objects. It contains fields (attributes) and methods
(functions).
9. What is an object?
- An object is an instance of a class. It contains both state (attributes) and behavior
(methods).