How java is platform independent?

Answer Posted / sandeep chauhan

the program is written in any language is called the source
program.and after compilation source code we get the object
code.so in java the source program is in ".java" file.when
this is compiled the object code will be in the ".class"
file.and this object code is bytecode.and this is is not
executable directly by any machine or o.s. so there will be
java virtual machine(jvm) which is an interpreter and
interpret the compiled object code into machine
understandable language.and which is executable for
machine.but every machine have its own jvm.and so this
bytecode can be executed in any machine according to there
jvm.so java is plateform independent language.

Is This Answer Correct ?    4 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is string :: npos?

572


do I need to use synchronized on setvalue(int)? : Java thread

547


What is initial size of arraylist in java?

533


What is the use of arrays tostring () in java?

510


What is formatted output?

504






What is a java list?

572


What technique is carried out to find out if a particular string is empty?

562


Why is java not 100% pure oops?

608


What are the differences between c++ and java?

575


What is return type in java?

628


What does the exclamation mark mean in java?

586


What is constructor chaining in java?

581


what are Hostile Applets?

1598


What is the super void?

452


What is double word?

529