JDK, JRE, JVM and Platform Independence Questions
45 min · Beginner
The JDK builds Java programs, the JRE runs them, and the JVM is the engine inside both that executes bytecode. Almost every fresher interview opens with this trio, platform independence and "is Java compiled or interpreted?", so a crisp answer here sets the tone for the whole round.
Topics in this lesson
- Recap: JDK contains JRE contains JVM
- Why Java is platform independent and the JVM is not
- Compiled or interpreted? Fully object-oriented?
- The javac and java flow, and what a .class file holds
- Traps interviewers listen for
Interview questions this lesson answers
- What is the JDK?
- What is the JRE?
- What is the JVM?
- What is the difference between JDK, JRE and JVM?
- What is bytecode?
- What does
javacdo? - What does the
javacommand do? - What is a
.classfile? - What does "write once, run anywhere" mean?
- Why is the JVM itself not platform independent?
Sign in free to continue this lesson
Create a free account to read every lesson, practise with the exercises and keep track of your progress.