Why Java is a platform independent language?

Answer Posted / prapanch

platform independent means,the java compiled program can be
run on any operating system.because when you compile a
program you will get a class file which contains byte code
which is specific to java. that byte code can understand by
jvms (java virtual machines).for different operating
systems different jvms will be there.so the jvm will
convert the byte code into machine understandable code.so
as the jvm is different for different operating systems no
need to worry much,that will take care of explaining to the
os.ok.

Is This Answer Correct ?    126 Yes 15 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the ==?

465


What is bool mean?

566


Why object class is super class for every class in java?

569


How is java hashmap implemented?

550


Should you use singleton pattern?

522






How do you compare characters in java?

523


Why string is a class?

547


What is the transient keyword?

630


Is string an object?

652


What is double word?

533


What is sorting algorithm in java?

522


What is the maximum size of a string in java?

551


What is the purpose of the finalize() method?

709


What is the use of static class?

543


There are two classes named classa and classb. Both classes are in the same package. Can a private member of classa can be accessed by an object of classb?

998