1. about the JVM principle: http://www.cnblogs.com/zhanglei93/p/6590609.html
2. About the garbage collection mechanism: http://www.cnblogs.com/zhanglei93/p/6636831.html
JVM Runtime data area has program counters, virtual machine stacks, local method stacks, heaps, method area 5 regions. The first three regions are created with the creation of threads and die out with the demise of the thread, and stack frames in the stack execute the stack and stack operations methodically as the method enters and exits. Therefore, the three regions do not need to consider the garbage collection problem too much. While the Java heap and the method area are different, multiple implementations of an interface require memory that may be different, and multiple branches in one method may require different memory, and only when the program is running can you know which objects are created, and that the allocation and collection of memory is dynamic.
View Code
The difference between 3.path and classpath: http://www.cnblogs.com/zuosl/articles/4317637.html
1 path is the full path that the system uses to specify the executable file, even if the path of the JDK is not set in path to execute the Java file, but the full path must be written 2 classpath is to specify the classes you use in your program (. Class) file, as if you were introducing a class: Import Javax.swing.JTable this sentence is to tell the compiler to introduce javax.swing this package under the JTable class, and classpath is to tell the compiler where to find this class (if you set the path of this class in classpath);
View Code
Remind this is just a summary of the part, more comprehensive add the Java Industry Communication Group 657516707
A summary of the key difficulties-----the Java Experience