"Java Development Combat Classic" reading notes

Source: Internet
Author: User

Common areas of memory in Java:

(1) Stack memory space: Save all object names.

(2) Heap memory space: Saves the specific property content of each object.

(3) Global Data area: Saves properties of the static type.

(4) Global Code area: Save all method definitions.

Static: A method of a non-static declaration can invoke a property or method of a static declaration.

However, the static declared method cannot invoke a property or method that is not a statics declaration.

Because all of the properties and methods in the program must be called after the object has opened up heap memory, the static type method can be called when the object is not instantiated.

"Java Development Combat Classic" reading notes

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.