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

I don’t want my class to be inherited by any other class. What should I do?

567


How do you use wildcards?

525


Why java does not support pointers?

546


Why do we use return statement?

533


What are the java ide’s?

568






What do bitwise operators do?

521


Explain about arraylist?

571


Can extern variables be initialized?

501


What is the purpose of using break in each case of switch statement?

559


What is java volatile?

531


What are daemon Threads in java?

604


Where pragma is used?

592


Difference between error and exception

4995


What are the differences between c++ and java?

571


How is final different from finally and finalize?

488