What is JAVA? Why it is platform independent?

Answer Posted / rock

When Java Code is compiled a byte code is generated which
is independent of the system. This byte code is fed to the
JVM (Java Virtual Machine) which is resided in the system.
Since every system has its own JVM, it doesn't matter where
you compile the source code. The byte code generated by the
compiler can be interpreted by any JVM of any machine.
Hence it is called Platform independent Language.

this is ans as per mr.patel but we have to install jvm on
the m/c on which we want to run the java application.
if this is the case for java then how java is platform
independent.?
i am confuse .
if am wrong pleas let me know.thank u

Is This Answer Correct ?    3 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is static a singleton?

741


Why deletion in linkedlist is fast than arraylist?

771


Can we use static class instead of singleton?

818


What is array command?

806


What are the difference between string, string builder, and string buffer in java?

843


What is the collections api?

778


What are the skills required for core java?

764


Differentiate between class and structure.

814


State the significance of public, private, protected class?

857


What is an immutable object?

783


What do you mean by ternary operator in java?

785


In a class implementing an interface, can we change the value of any variable defined in the interface?

724


What is the static keyword?

808


How does hashmap work in java ?

742


What are the restrictions that are applied to the java static methods?

761