Why learn Java virtual machines?
Why learn about the JVM?
What are the benefits of learning Java virtual machines?
These questions are like asking the Java program Ape: Why do you have to be strong !
C + + programs can run directly on the physical machine CPU after compilation. Java programs are different and run on a Java virtual machine. When writing a C + + program, programmers need to allocate their own memory and reclaim memory, inadvertently prone to memory leak errors. Write Java programs do not have to worry about the allocation and recovery of memory, memory allocation and recovery is solely by the Java Virtual Machine agent, greatly reducing the probability of memory leaks.
However, in the daily Java development, once the outofmemory error occurs, if the Java virtual machine is unfamiliar, it is difficult to start debugging this problem. Only to the bug Hearen scratching the ears, baffled its solution. So it is necessary to learn Java virtual machine.
It seems to me that mastering the technology of the JVM has, but is not limited to, the following benefits:
(1) See How the Java code works at an unobstructed glance.
(2) Memory overflow, memory leak problem is a cinch.
(3) system optimization, JVM tuning no longer talk.
At last.
Why to learn Java virtual machines