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 is the difference between Java Program Constructor and Java Program Method, What is the purpose of Java Program constructor Please Explain it Breafily?

835


Can you extend main method in java?

855


Can a vector contain heterogenous objects?

815


What is static method with example?

882


What are the pillars of java?

685


Why convert an applet to an application?

877


What are static variables and functions?

850


What are facelets templates?

803


What is the purpose of return statement?

833


Can a class have more than one object?

766


Explain how to convert any java object into byte array.

761


What are the main differences between the java platform and other platforms?

777


What does microservices mean?

721


What is instance synchronization?

831


Tell us something about set interface.

778