Core_Java_Interview_Questions_Answers
Core_Java_Interview_Questions_Answers
1. What are the key differences between JDK, JRE, and JVM?
JDK is the full Java development kit including compiler, debugger, and tools. JRE provides the
runtime environment to run Java applications including JVM and libraries. JVM is the Java Virtual
Machine that runs bytecode and provides platform independence.
26. What is the difference between shallow copy and deep copy?
Shallow copy copies object references, so both point to the same objects. Deep copy duplicates
objects and nested objects.