Java Programming Ideas Learning notes

Source: Internet
Author: User

I. Introduction to Objects

Access rights in 1.Java: Public,protected,private and Default: The default access rights are package access, under which classes can access other class members in the same package. But outside of the package, it's like private.

The ultimate class in 2.Java is: Object

Second, everything is the object

Places stored in 1.Java: (1) Register: Fastest Storage area

(2) Stack: In general RAM. If the stack pointer moves down, the new memory is allocated, and if the stack pointer is understandable, the corresponding memory is freed.

(3) Heap: A common memory pool located in RAM for storing all Java objects.

(4) Constant storage: stored directly inside the program code.

(5) Non-RAM storage: Provides support for lightweight persistence

2.

Java Programming Ideas Learning 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.