ALLInterview.com :: Home Page KalAajKal.com
 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                      
tip   To Refer this Site to Your Friends   Click Here
Google
 
Categories  >>  Software  >>  Core Java  >>  Java J2EE  >>  Java Related
 
 


 

 
 Core Java interview questions  Core Java Interview Questions
 Advanced Java interview questions  Advanced Java Interview Questions
 Swing interview questions  Swing Interview Questions
 EJB interview questions  EJB Interview Questions
 Servlets interview questions  Servlets Interview Questions
 Struts interview questions  Struts Interview Questions
 JDBC interview questions  JDBC Interview Questions
 JMS interview questions  JMS Interview Questions
 SunOne interview questions  SunOne Interview Questions
 J2EE interview questions  J2EE Interview Questions
 Weblogic interview questions  Weblogic Interview Questions
 Websphere interview questions  Websphere Interview Questions
 Java Networking interview questions  Java Networking Interview Questions
 Java J2EE AllOther interview questions  Java J2EE AllOther Interview Questions
Question
Functionality of JVM?
 Question Submitted By :: Sumalatha
I also faced this Question!!     Rank Answer Posted By  
 
  Re: Functionality of JVM?
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 ?    10 Yes 3 No
Ranganathkini
 
  Re: Functionality of JVM?
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 ?    7 Yes 1 No
Shakir Khan
 
 
 
  Re: Functionality of JVM?
Answer
# 3
JVM will convert the byte code to user understandable code.
Provides the services like class loading,garbage collection
 
Is This Answer Correct ?    1 Yes 4 No
Ravikiran
 
  Re: Functionality of JVM?
Answer
# 4
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 ?    1 Yes 1 No
Jitesh Singh
 

 
 
 
Other Core Java Interview Questions
 
  Question Asked @ Answers
 
If set accepts only one argument then how can it compare two objects to avoid duplicates  3
Can you declare a static variable in a method?  4
Name the method that used to clear the buffer ?  2
Explain in detail about encapsulation with an example?  3
How to override a equals() method and what is the use?  1
String is a immutable objects . it means that string does not change........... But it will be chang......... { String s="kapil"; String s1="raj"; String s=s1; then print(.......) The String has been changed .. how it is possible and why its called immutable objects  3
In Java why we write public static void main(String args[]) why not main()? TCS12
Explain, why the constructor is required in implemented class?  2
What primitive Java types? Howmany are they and what are their names?  3
Can u write constructor in abstract.If yes den when it will be invoked. SunGard3
What is Generic in java? Where can we write Generic ( class or method or objects or etc...)? with simple example? Thanks, Bose. Infosys1
jdbc drivers? Wipro7
1).what is the difference between below examples String s="vijay"; String s=new String("vijay"); TCS11
What will happen inside init() in servlet. my interviewer asked servlet lifecycle. i said "once servlet is loaded in to memory init() will be called which performs servlet initialization " . Again interview asked what values will be initialized . what is difference between init() and init(ServletConfig config). Infinite-Computer-Solutions2
How to access a variable if it is declared as private?  2
Catch(Exception e){ } in that what is Exception and purpose of that in that place exactly?  3
Java violates few objected oriented concepts. Can you explain in what way? Ness-Technologies3
How to create two different thread class inside a main function?  1
A abstract class extending an abstract class.Super class has both abstract and non-abstract methods.How can we implement abstract and non-abstract mehtods? Explain with snippet  3
what is difference between throw and throws in exception?  16
 
For more Core Java Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com