How java is platform independent?

Answer Posted / rinky sharma

when java code is compiled a bytecode is generated which is
independent of the system.This bytecode is fed to the JVM
(java virtual machine)which is resided in the system.Since
every system has its own JVM,it does'nt matter where u
compile the source code.The bytecode generated by the
compiler can be interpreted by any JVM of any machine.

Hence it is called platform-indepented language.

Is This Answer Correct ?    62 Yes 12 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are multiple inheritances?

572


Why constructor has no return type?

632


What is the main difference between java platform and other platforms?

497


When should you use arraylist and when should you use linkedlist?

484


Can private class be extended java?

553






Why arraylist is used in java?

537


Why scanner is used in java?

539


What are "methods" and "fields"?

565


What is string length in java?

481


What is a instance variable?

576


A person says that he compiled a java class successfully without even having a main method in it? Is it possible?

576


What is the most important feature of java? What is an interface?

505


What is the difference between choice and list?

586


How many unicode characters are there?

543


who can i handle multiple client in RMI

1433