Java Virtual machine

Source: Internet
Author: User

Load the class file from the hard disk in memory through the ClassLoader

JVM Virtual machine Process system.exit () End Java Virtual machine

Three steps to load, connect, initialize a connection to a class: Validate: Ensure the correctness of the loaded class (the user's own maliciously generated class file) is prepared: allocates memory for the static variables of the class and initializes it to the default value initialization: assigns the correct initial value to the static variable of the class (the correct initial value of the user-assigned value)

Java programs use classes in two ways: active use: Passive use of new read-write static variables

Proxy dynamically generates classes, specifies class loaders, loads the generated classes into memory

Initializing classes for active use of classes

Delegate parent Load

Local methods: Interacting with the operating system or focused on efficiency, written in other languages, Java methods are platform-independent, but local methods are not, and local methods are used to lose program portability

Java Virtual machine

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.