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 Related AllOther
 
 


 

 
 Java J2EE interview questions  Java J2EE Interview Questions (3218)
 J2ME interview questions  J2ME Interview Questions (133)
 Java Related AllOther interview questions  Java Related AllOther Interview Questions (88)
Question
Why Java is a platform independent language?Explain byte code 
and JVM
 Question Submitted By :: Java-Related-AllOther
I also faced this Question!!     Answer Posted By  
 
Answer
# 1
due to byte code and jvm java is platformindependent
language.as we know after compiling sourcecode it gives
java byte code.only jvm can execute bytecode and every os
(operating system) having their own jvm.so it is a
platformindependent language.jvm stands 4 java virtual
machine which executes the bytecode.bytecodes are the
intermediate language for jvm.
 
Is This Answer Correct ?    47 Yes 5 No
Kabita
 
Answer
# 2
Java is platform independent language as the compiled
version from one platform can be executed on any other
platform(OS) and bytecodes are the compiled version of java
program which is an intermediate language and JVM is Java
virtual machine which is a part of java platform and is a
software implementation/specification for a java
application.
 
Is This Answer Correct ?    37 Yes 10 No
Monisha
 
 
 
Answer
# 3
When Java Code is compiled a byte code is generated which
is independent of the system. This byte code is fed to the
JVM (Java Virtual Machine) which is resided in the system.
Since every system has its own JVM, it doesn't matter where
you compile the source code. The byte code generated by the
compiler can be interpreted by any JVM of any machine.
Hence it is called Platform independent Language.
 
Is This Answer Correct ?    22 Yes 2 No
Hemalatha
 
Answer
# 4
At first the java source code is compiled and then it is
interpreted to a optimized set of executable statements.
After compiling the source code the bytecode is generated
which is same for all platforms i.e OS. This byte code
needs JVM(java virtual machine) to be interprated which is
defferent for different OS i.e platform.
Due to the byte code which is same for all JVM java is
explicitely known as platform independent language.

source code ---------> bytecode ----------> executable
compilation same interpration
for all by JVM
JVM
 
Is This Answer Correct ?    12 Yes 4 No
Nilanjan
 
Answer
# 5
.class we get in windows os(platform) after compilation is referred to as bytecode.A bytecode is unversal code and is accessible by any jvm...d thing is every platform has its own type of jvm,to convert it into platforms(machine) language..


(m/c)english-->bytecode ======= bytecode--->telugu(m/c)
ompiled jvm
 
Is This Answer Correct ?    3 Yes 1 No
Katarimanoj
 
Answer
# 6
A java Document which is converted into binary Executable
format and unchanged run on multiple plat forms is called
platform independent.
 
Is This Answer Correct ?    2 Yes 1 No
Prasad
 
Answer
# 7
byte code is an intermediate code for java in the form of hexadecimal ,which is compiled code of java compiler and same
for all o\s.after compilation all machine or o\s have own java virtual machine translate the byte code into machine code. so we can say that java is a platform independent language.
 
Is This Answer Correct ?    2 Yes 1 No
Sandeep Negi
 
Answer
# 8
Write once Run anyware 
Is This Answer Correct ?    5 Yes 4 No
Guest
 

 
 
 
Other Java Related AllOther Interview Questions
 
  Question Asked @ Answers
 
In my project i need to use either JSF or Struts.Here i need some clarification about them and which IDE is better for JSF development? Please post your valuble answers ASP! Infosys 4
If one class havent the constructor, it has normal method, then can i use super keyword to call the method form the sub class and vice verse?   2
how can program polindrome using java   1
what is meant by Encapsulation?Explain with an example?   4
Iam working as a Project Lead in a s/w comp.The follwing question was asked in HCL interview. What about the schedule slippage? If the developer has taken more time than the specified time. How do you adjust the time? From where do you allocate that extra time for the developer? HCL 2
suppose we have one String s="india is my country"; now we get the o/p "like country my is India". what is the logic?   2
i have make jar file but when i click in this file then arr swhow "no faund main class" plese help me in this problem becose i want to make a jar file as a dxdcutable file   1
is hibernate a technology or framework?   2
please suggest me final year project ideas for computer engg.on java as soon as possible becaus eo want to sumbit project name. and i am very confused.   1
What is the difference between Enumeration and Iteration interfaces? What is the way of to retreive the objects from these interfaces ? Cap-Gemini 1
what is constructer?what are the type of constructer with example.   6
Which is the Best institute to do academic Project in Java? Need information about institutes at Ameerpet, Hyderabad.   8
 
For more Java Related AllOther 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