what is java virtual machine

Answer Posted / rakesh kumar mishra

A)JVM convert .class to machine language.

B) JVM is .exe program that is java.exe

C)JVM (Java Virtual Machine) run the java program.

1) JVM check .class code is proper or not (Its check byte
code , virus etc) if .class code is not proper it terminate
the execution.

2) If .class is in proper format then it will start work.
JVM has 5 part:-
1)Method Area
2)Heap Area
3)Java Stacks
4)PC register
5)Native Method Stacks

method area has class code, variables code and method code.
When object is created it store in heap Area.
In our program there will some methods, and its take some
memory for execution and store o/p so this is done in Java
Stacks.
PC register has memory address of every method.
Native Method has Native methods.

3) JVM start program from main(). this is starting point of
JVM in our Program.
JVM also check main method and its argument must be String
type array.

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is mean by hasing and maping in java platform and advantage?

1941


What is java collection? : java collections

691


who will give req's to u?. how they send req's to u? . what design documents contains?. when bugs raised on other developer code how to report to them?.(throgh mail or ........). how to retrive 100 recods from dao layer to presentation layer.using which collection?. what is sequence diagram.?.

1929


please mail me the interview question based on java/j2ee

1622


What are the types of java collections? : java collections

636






What are the types of interface used in the java collections? : java collections

669


What are the differences between the java collection and the java list? : java collections

699


What is the use of the list interface in the java collection? : java collections

685


What are the different types of collections views being provided by the map interface? : java collections

689


What is iterator in the java collections framework? : java collections

618


What are the different types of features of the java collections framework? : java collections

670


Which server-side script takes the input from JavaScript, can access the database if it needs to, and processes the data.

1685


What is an algorithm in java collection framework? : java collections

678


What are the different types of ways where you can iterate over a list? : java collections

656


Which interface does java.util.hashtable implement?

802