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.
Hi, This blog is the place who want to prepare for programming interview with major product development companies. Apart from interview questions I would like to provide some concepts on the new technologies which I learn as part of my carrier. Thanks for visiting my Blog.
Subscribe to:
Post Comments (Atom)
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...
-
Here I am going to discuss some of the differences between Text and String class in Hadoop. Text class lies in the package: import org.ap...
-
Q: What is the library you used in spring to connect to database? Spring JDBC template. Q: What and all involved in fetching the data ...
-
There are 2 ways we can load data into the HIVE Tables. In this tutorial we are loading data into the HIVE managed Table. This is my sa...
No comments:
Post a Comment