Saturday, October 16, 2010

Basic important information for a Java Class

Hi,
Whenever the JVM was ask to Execute the .class file,JVM opens the .class file and searches for the static elements in the .class file and then loads all the static elements of the .class file into one specific memory location inside the RAM.
Now JVM searches for the main method() among these static elements and then start
executing it.

NOTE :
The memory space reserved in the RAM for the static contents of the .class file is known as CONTEXT OF THE CLASS.

Whenever new operator is encountered, JVM creates an object and loads all the non-static members of the class into the object.
This is Known as "INSTANCE OF THE CLASS"

NOTE : Static members and Static functions remains in RAM until the control completes the execution of main method.
So,We can call this static functions as many times as Required.

No comments:

AWS certification question

AWS AWS Hi! this is for questions related to AWS questions. EC2 instances EC2 storage types cold HDD : 1. Defines performance in terms...