Why Java is a platform independent language?Explain byte code
and JVM

Answer Posted / hemalatha

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 ?    23 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which version of my browser should I use? : java security

674


What is stateless in java?

675


How do javabeans work?

627


What is transaction management in java?

650


What are orm tools in java?

754






What kind of thread is the garbage collector thread?

660


How do I enable java in google chrome?

617


Explain daemon thread.

725


What is hql in java?

643


What is the use of flatmap in java 8?

611


Can you compile java into exe?

721


What is a bean class?

638


Why is class forname used in java?

679


What is an api in java?

672


How can I write a program that takes command line input?

640