Now read the second chapter, the discovery of a lot can already know, but still have their own unfamiliar, for example, is stored somewhere: The book describes five storage places are 1 storage, 2 stacks, 3 heap 4 constant storage 5 non-RAM storage, Java out of the object is stored on the heap, Heap benefits It is different from the stack, the compiler does not know how much time the stored objects survive in the heap, so allocating memory is very flexible, when you need an object to execute a piece of Java code, when the execution of this code will automatically allocate space inside the heap, such flexibility leads to the time he needs than C + + The amount of time it takes to allocate storage space on the stack. Have seen a series of Java teaching video there is a special emphasis is when the creation of the object is actually stored there, and the garbage collection mechanism is also related. So it's important to think that this is a special record today.
Java programming Ideas of reading notes 3