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

How do you use spaces in java?

752


What is static method with example?

883


What is adapter in java?

720


Why stringbuilder is not thread safe in java?

809


In java, how many ways you can take input from the console?

760


What is the class in java?

777


What are the differences between forwarding () method and sendredirect() methods?

849


What's the difference between an abstract class and interface in java?

800


What is the function of java?

755


What is stack example?

791


What is the instance of an object?

865


What is a top level class in java?

756


Is java a software?

724


In java, how we can disallow serialization of variables?

755


Difference between operator overloading and function overloading

844