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

Which package is used for pattern matching with regular expressions?

882


Can a constructor be protected?

821


What are controls and their different types in awt?

867


what is the difference between Object Based Language and Object Oriented Language?

819


What is generics in java interview questions?

793


What is variable declaration and definition?

785


Is an integer an object?

745


How objects are stored in java?

796


Can a class extend more than one class?

876


What is meant by stack and queue?

802


What do you understand by the bean persistent property?

793


How do you make an arraylist empty in java?

717


Is java a compiler?

775


Explain wait(), notify() and notifyall() methods of object class ?

835


How to overcome the exception object reference not set to an instance of object?

911