How java is platform independent?

Answer Posted / rinky sharma

when java code is compiled a bytecode is generated which is
independent of the system.This bytecode is fed to the JVM
(java virtual machine)which is resided in the system.Since
every system has its own JVM,it does'nt matter where u
compile the source code.The bytecode generated by the
compiler can be interpreted by any JVM of any machine.

Hence it is called platform-indepented language.

Is This Answer Correct ?    62 Yes 12 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is synchronization and why is it important? : Java thread

843


What is main function purpose?

750


How do you sort words in java?

720


Is array a class?

714


When we should use serialization?

799


describe synchronization in respect to multithreading? : Java thread

710


What are the different tags provided in jstl?

757


What is substring in java?

822


What are synchronized blocks in java?

793


Is string a class?

747


What are unchecked exceptions in java?

825


What is the difference between length and length() method in java?

858


Explain the selection sort algorithm and state its time complexity?

814


What is the formula to calculate percentage?

753


What is the purpose of a transient variable?

810