ALLInterview.com :: Home Page            
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
Google
   
 
Categories >> Software >> Java Related >> Java J2EE >> Core Java
 
 


 

 
 Core Java interview questions  Core Java Interview Questions (1728)
 Advanced Java interview questions  Advanced Java Interview Questions (332)
 Swing interview questions  Swing Interview Questions (44)
 EJB interview questions  EJB Interview Questions (134)
 Servlets interview questions  Servlets Interview Questions (255)
 Struts interview questions  Struts Interview Questions (196)
 JDBC interview questions  JDBC Interview Questions (187)
 JMS interview questions  JMS Interview Questions (9)
 SunOne interview questions  SunOne Interview Questions (3)
 J2EE interview questions  J2EE Interview Questions (71)
 Weblogic interview questions  Weblogic Interview Questions (147)
 Websphere interview questions  Websphere Interview Questions (14)
 Java Networking interview questions  Java Networking Interview Questions (20)
 Java J2EE AllOther interview questions  Java J2EE AllOther Interview Questions (87)
Question
Functionality of JVM?
 Question Submitted By :: Core-Java
I also faced this Question!!     Answer Posted By  
 
Answer
# 1
The JVM is the core of the Java platform and is responsible for:

1. Loading bytecodes from the class files
2. Verifying the loaded byte codes
3. Linking the program with the necessary libraries
4. Memory Management by Garbage Collection
5. Managing calls between the program and the host environment.
 
Is This Answer Correct ?    52 Yes 7 No
Ranganathkini
 
Answer
# 2
Java sovles the problem of platform independence by using
byte code.Java complier does not produce native executable
code.Instead it produces a special format called byte code.

Byte code is a highly optimized set of instructions
designed to executed by a java runtime system called Java
Virtual Machine(JVM).JVM is an interpreter for byte code.

This interpreter reads or understands the bytecode and
executes the corresponding native machine instructions.

Thus to port java programs to a new platform ,all that
needed is to port the interperter and some of the library
routines.Even the complier is written in java.The byte
codes are precisely defined and remain the same on all
platforms.

The use of byte code enables the java runtime system to
execute programs much faster.
 
Is This Answer Correct ?    31 Yes 5 No
Shakir Khan
 
 
 
Answer
# 3
The jvm simply allocates memory for instances and it
provides location name and hashCode for the location.
And it checks is there any change in the program before
loading it into the class loader
 
Is This Answer Correct ?    5 Yes 0 No
Cherry
 
Answer
# 4
--checks for .class files..
--converts byte code into machine understandable code
--searches for methods to do particular actions with os.
 
Is This Answer Correct ?    4 Yes 0 No
Siva
 
Answer
# 5
jvm stands for java virtual machine.it translate sourse code
to byte code
 
Is This Answer Correct ?    5 Yes 7 No
Mah
 
Answer
# 6
JVM works is only to provide memory and resource allocation
.the conversion of bytecode into machine code is done by
J.I.T(just in time compiler)
if a program is executed on the same machine then the full
resources used by JVM else if on other system then less
resources used by JVM.
 
Is This Answer Correct ?    2 Yes 5 No
Jitesh Singh
 
Answer
# 7
JVM will convert the byte code to user understandable code.
Provides the services like class loading,garbage collection
 
Is This Answer Correct ?    6 Yes 23 No
Ravikiran
 

 
 
 
Other Core Java Interview Questions
 
  Question Asked @ Answers
 
When we will use an Interface and Abstract class?   9
is set interface synchronized by default??? Manhattan 2
To set the position and size of a component, which methods are used?   3
what is main purpose of abstract class?   7
Difference String and String Buffer   4
Define Compiling?   3
where do we use init()   2
posted in online test   1
What is thread? BMC 6
Write a java program to get a string of words and print the numbers of each word count in descending order Subex 10
Which are thin and thicK wrapper Class's in Java?   1
Differentiate Vector and ArrayList? Wipro 4
 
For more Core Java Interview Questions Click Here 
 
 
 
 
 


   
Copyright Policy  |  Terms of Service  |  Articles  |  Site Map  |  RSS Site Map  |  Contact Us
   
Copyright 2013  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  KalAajKal.com