Does jvm maintain a cache by itself? Does the jvm allocate objects in heap? Is this the os heap or the heap maintained by the jvm? Why



Does jvm maintain a cache by itself? Does the jvm allocate objects in heap? Is this the os heap or t..

Answer / Anuj Srivastava

Yes, the JVM maintains its own cache called JIT (Just-In-Time) compiler cache. The purpose of this cache is to compile bytecode into native machine code to improve performance.nThe JVM allocates objects in a memory space known as the heap.nThis heap is not the OS heap but is managed by the JVM itself. The heap's primary role is to store objects during runtime.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Java Related AllOther Interview Questions

What is setstring method in java?

1 Answers  


How do I download and install eclipse on windows 10?

1 Answers  


What are the differences between java’s old java date api and java 8’s date and time api?

1 Answers  


What is property file in java?

1 Answers  


What is meant by code profiling?

1 Answers  


What do you understand by downcasting?

1 Answers  


What is a bean class?

1 Answers  


What is jpa implementation?

1 Answers  


What is cmp in java?

1 Answers  


Can we write lambda without functional interface?

1 Answers  


What is transient in java?

1 Answers  


When do we go for java 8 stream api? Why do we need to use java 8 stream api in our projects?

1 Answers  


Categories