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
Do you need to import math in java?
How we create object in copy constructor?
What do you mean by ternary operator in java?
What is included in core java?
How do I compare two strings in word in java?
What is casting in java programming?
What is the difference between pass by reference and pass by pointer?
What is the difference between a synchronized method and a synchronized block?
What is module in project?
What is basic syntax?
How can we find the sum of two linked lists using stack in java?
How many functional interfaces does java 8 have?
Can we override the static methods?
what are abstract functions?
How do you clear a list in java?