Java Virtual Memory(JVM)
JVM also called Java Virtual Machine is an abstract machine. It is specification that provides runtime environment in which java byte code can be executed.Characteristics:
1. JVM is a specification where working of J.V.M is specified but implementation provider is independent to choose the algorithm.2. J.V.M is an implementation; it’s implementation is known as JRE.
3. Run time instance: Whenever we write a java command to run the java class an instance of J.V.M is created.
Operation of J.V.M:
1. Loading code.2. Verifying codes.
3. Executing codes.
4. Providing run time Environment.
Architecture of J.V.M:
1. Class Loader:
It is a subsystem of JVM which is use to load class files. Whenever we run the java program it is loaded first by the class loader. There are 3 built in class loaders in JVM –a. Boot strap class loader.
b. Execution class loader.
c. System/ Application class loader.
2. Class area:
Class (Method) area stores per class structures such as method data, code for Methods.
No comments:
Post a Comment