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
what is the purpose of using rmisecuritymanager in rmi?
What does microservices mean?
I want my class to be developed in such a way that no other class (even derived class) can create its objects. Define how can I do so?
Can we extend singleton class in java?
What is constructor and virtual function? Can we call a virtual function in a constructor?
What is private protected in java?
Difference between Preemptive scheduling vs. Time slicing?
What is the difference between static and global variables and also define what are volatile variables?
how does the run() method in runnable work? : Java thread
What does flag mean in java?
What super () does in java?
What is scope & storage allocation of static, local and register variables? Explain with an example.
Can we pass a primitive type by reference in java? How
How can we avoid including a header more than once?
How do you get the length of a string in java?