Java Interview Questions and Answers

1). What is Java? Java is a high-level, general-purpose, memory-safe, object-oriented programming language. It is intended to let programmers write once, run anywhere (WORA), meaning that compiled Java code can run on all platforms that support Java without the need to recompile. 2) Features of Java? - Platform Independent - Multithreaded - Simple - Robust - Architecture Neutral 3). Difference between JDK, JRE and JVM. Java Development Kit, or JDK, is a software development kit that is a superset of JRE. It is the foundational component that enables Java application and Java applet development. It is platform-specific, so separate installers are needed for each operating system (for example, Mac, Unix, and Windows). Java Runtime Environment, or JRE, is a set of software tools responsible for execution of the Java program or application on your system. Java virtual machine, or JVM, loads, verifies, and runs Java bytecode. It is known as the interpreter or the core of the Java programming language because it runs Java programming. javac – the Java compiler, which converts source code into Java bytecode - complier time java - Byte code to Binary code convert with help of JRE - Run time 4).

Apr 14, 2025 - 06:00
 0
Java Interview Questions and Answers

1). What is Java?
Java is a high-level, general-purpose, memory-safe, object-oriented programming language. It is intended to let programmers write once, run anywhere (WORA), meaning that compiled Java code can run on all platforms that support Java without the need to recompile.

2) Features of Java?
- Platform Independent
- Multithreaded
- Simple
- Robust
- Architecture Neutral

3). Difference between JDK, JRE and JVM.

Java Development Kit, or JDK, is a software development kit that is a superset of JRE. It is the foundational component that enables Java application and Java applet development. It is platform-specific, so separate installers are needed for each operating system (for example, Mac, Unix, and Windows).

Java Runtime Environment, or JRE, is a set of software tools responsible for execution of the Java program or application on your system.

Java virtual machine, or JVM, loads, verifies, and runs Java bytecode. It is known as the interpreter or the core of the Java programming language because it runs Java programming.

javac – the Java compiler, which converts source code into Java bytecode - complier time

java - Byte code to Binary code convert with help of JRE - Run time

Image description

4).