What is JAVA? Why it is platform independent?

Answer Posted / rock

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.

this is ans as per mr.patel but we have to install jvm on
the m/c on which we want to run the java application.
if this is the case for java then how java is platform
independent.?
i am confuse .
if am wrong pleas let me know.thank u

Is This Answer Correct ?    3 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is variable argument in java?

555


Is nullpointerexception checked or unchecked?

549


What is a method in java?

557


What is difference between this and super keyword?

510


Write a program to print all permutations of string?

673






What is difference between static class and normal class?

527


What’s the difference between applets and standalone program?

527


How finally used under exception handling?

505


What are the 7 types of characters?

562


What is immutability in java?

600


Are the imports checked for validity at compile time? Will the code containing an import such as java.lang.abcd compile?

589


What are parsing rules?

495


What is maximum size of arraylist in java?

490


How is abstraction implemented in java ?

536


What do you mean by chromounits in java8?

524