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
How is treeset implemented in java?
How do you reverse sort in java?
What are predicates in java 8?
How will you initialize an Applet?
What is exception in java?
Which way a developer should use for creating thread, i.e. Sub classing thread or implementing runnable.
What is the list interface?
Differentiate between stringbuffer and stringbuilder in java.
What do you understand by access specifiers in Java?
Why string is a class?
What advantage do java's layout managers provide over traditional windowing systems?
Are private methods final?
What is class variable java?
How to restrict a member of a class from inheriting by its sub classes?
What is the difference between the paint() and repaint() methods in java programming?