Java programming Ideas of reading notes 3

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.