Which class is super class of every class

Does JVM maintain cache itself Does JVM allocate objects on heap

OR
Does JVM maintain cache by itself ? Does JVM allocate objects in heap ? Is this OS heap or heap maintained by JVM ?

Answer :

Does JVM maintain a cache by itself : Yes, JVM (Java Virtual Machine) maintains a cache by itself and it creates the Objects on the HEAP, but references to those objects are on the STACK.

Does the JVM allocate objects in heap : Yes, it creates the Objects on the HEAP, but references to those objects are on the STACK.

Is this the OS heap or the heap maintained by the JVM : heap is  maintained by the JVM.

Leave a Reply

Your email address will not be published. Required fields are marked *