A Class is a blueprint; an Object is an instance created in memory with the new keyword. In JVM memory, the local reference variable (e.g., car1) lives on the Stack, while the actual object and its instance fields live on the Heap.
ADVERTISEMENT