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 (1721)
 Advanced Java interview questions  Advanced Java Interview Questions (331)
 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 (146)
 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 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
# 6
jvm stands for java virtual machine.it translate sourse code
to byte code
 
Is This Answer Correct ?    4 Yes 7 No
Mah
 
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 22 No
Ravikiran
 

 
 
 
Other Core Java Interview Questions
 
  Question Asked @ Answers
 
What is the code inside the public void actionPerformed(ActionEvent ae) override method in Applet [ Condition:- you have one TextField and One Button , you have to enter any color name inside the TextField, when you click on Button Your background will change according to your input color name] IBM 2
can you create interface instance ? Fidelity 54
In the HashMap, we know the values but we dont know the key, then how can we get the key from HashMap ????? Kanbay 4
Which Component subclass is used for drawing and painting?   1
What is Session and cookies?Explain in detail with an example? CTS 4
Why can't we make jsp as a controller and action servlet in struts? TCS 8
The following program is Overloading or Overriding? public class PolymorphismEx { public int sampleMethod(int a) { return a; } public String sampleMethod(int a) { return "Is it Overloading or Overriding???"; } } Ness-Technologies 3
what is the difference between String and StringBuffer classes? Infosys 2
int a=1; float b=1.0; System.out.println(a==b); Honeywell 13
why we are calling j2se why not j1se or j3se or j4se..etc is there any reason.. can u please explain it... i shocked in my interview when they asked this question please explain ans Infosys 2
How do u pass data from one jsp to another jsp? Fidelity 3
for(i=0;i<100;i++) { int i=method();//method returns no's from 1 to 10; /* insert some stmts which can give output like no.of times numbers(1-10) returned. (for example if it returns 2 then i want output how many times 2 returned) like that i want output for no's 1 - 10 how many times each no returned. */ }   3
 
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