课程: Java Memory Management: Values and References
今天就学习课程吧!
今天就开通帐号,24,700 门业界名师课程任您挑!
JVM and memory management
- [Instructor] The JVM is managing the Java memory. Without a management of memory, objects couldn't be stored because there would be no memory allocated for these objects. And even if that part was in place somehow, it would never be cleaned up. So cleaning up the memory, also called deallocation, it's of great importance for running Java code. Without it, the code can't run, or if it's only allocated, it will get full and the program will run out of memory. Long story short, memory management is important. It's one of the very important tasks of the JVM. The JVM stands for Java virtual machine, and this is actually the environment that executes the Java code. It can actually also execute other code, but let's not get into that now. It is what it says, the virtual machine especially for Java. JVM is what makes the Java platform independent. Every system has its own JVM that will run the written Java code the same way. So the reason that Java has the write once, run anywhere principle…