How java is platform independent?

Answer Posted / rajesh pradhan

Whenever we compile the java source code it becomes
transform into an intermediate code(known as "Byte
Code"),unlike other languages,"ByteCode"(.Class file) is
platform independent code.Then u can run the Byte Code on
any Platform(OS)either it is Linux,Mac or Windows..But d
reality is that the ByteCode(.class file)is run by the Java
Interpreter which in turn invokes the JVM(Java Virtual
Machine) which is differ for the different OS. And the
output of JVM is machine dependent code..[AND THE MOST
SECRET:--JAVA IS NOT PLATFORM INDEPENDENT IF THERE IS NOT
THE DIFFERENT JVM FOR DIFFRENT OS...AND PLUS WE NEED NOT TO
INSTALL JVM MANUALLY ..IT IS INBUILT IN ALL OS..]

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How hashmap increases its size in java?

493


What are the different tags provided in jstl?

553


Which are the two subclasses under exception class?

528


Write a program in java to find the maximum and minimum value node from a circular linked list.

525


What is the output of the below java program?

595






What is the public field modifier?

545


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

647


Can we use catch statement for checked exceptions?

516


What is the method in java?

599


What is object-oriented programming?

571


What is scope & storage allocation of static, local and register variables? Explain with an example.

568


Explain JMS in detail.

616


Can you explain the meaning of aggregation and composition

574


What is java argument list?

522


How do you declare a variable?

629