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 a Hash Table? What are the advantages of using a hash table?

696


Which of the classes will have more memory allocated?

638


How to create packages in java?

615


What is a dynamic array java?

606


What is difference between class and object in java?

619






What is serial version uid and its importance in java?

684


What is the difference between array and array list in java?

691


Which package is used for pattern matching with regular expressions?

731


Can we use this () and super () in a method?

621


What is broken and continue statement?

637


What is visibility mode?

625


What is a copy constructor in java?

668


What is the multi-catch block in java?

616


What is java volatile?

634


Difference between character constant and string constant in java ?

651