How java is platform independent?

Answer Posted / prankur tripathi

java is platform independent bcoz it can be run on any
platform.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 resides
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.

Java's bytecodes are desgined to be read and interpreted in
exactly same manner on any computer hardware or operating
system that supports Java Runtime Environment.

The Java Virtual Machine can be called a virtual operating
system that enables a java programme to run... we are thus
calling java platform independent because a java program
will not give different outputs on different machines but
platform dependent programmes tend to give different
results when compiled on different machines...

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is java abstraction with example?

556


How can we run a java program without making any object?

545


What is the use of set in java?

612


What is the unit of plancks constant?

574


Is boolean a data type in java?

523






What is compiler and what its output.

636


What is string [] args?

559


What is the difference between synchronized and synchronized block?

503


Which one will take more memory: an int or integer?

773


What is a parent class in java?

547


How does list work in java?

510


What is the difference between preemptive scheduling and time slicing?

593


Explain the difference between jdk, jre, and jvm?

595


What is a Hash Table? What are the advantages of using a hash table?

610


what is the use of pojo (plain old java objects)? how it is interact with crystal reports? pls urgent

1733