Why Java is a platform independent language?

Answer Posted / nikhlesh gupta datia(m.p.)

The compiler converts source code file into bytecode files. These codes are machine independent and can be run on any machine. Java interpreter reads the bytecode files and translates them into machine code for the specific machine on which the Java program in running.

Is This Answer Correct ?    252 Yes 12 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What do you understand by java?

563


How do you pass by reference?

535


Can you give few examples of final classes defined in java api?

559


Explain the importance of finalize() method.

564


Why chararray() is preferred over string to store the password?

524






What is computer compiler?

533


What is object english?

583


Why hashmap is used in java?

544


What do you mean by platform independence? What is an interface?

563


How do you sort a string in alphabetical order in java?

528


What is close method? How it's different from Finalize & Dispose?

563


Is oracle java 11 free?

526


What are constructors in java?

565


Give differences between Quicksort & Mergesort. When should these sorts be used and what is their running time?

569


What is a "pure virtual" member function?

598