How java is platform independent?
Answer Posted / ranganathkini
In the classic sense of software development, programs are
coded in higher level languages such as C/C++, then that
source code needs to be compiled into native machine
language specific to that platform so that the program is
made executable.
Java compiler on the other hand does not compile Java source
files into native machine language, instead it compiles the
source code into bytecodes. These bytecodes are platform
independant i.e. in other words specific to to the Java
Virtual Machine specification. This enables platform
independant compilation.
When the bytecode compiled programs are executed thru the
Java interpeter, it converts those bytecodes into native
machine code and executes them thru the JVM which is
specific to host environment it is running on. This enables
platform specific execution.
Is This Answer Correct ? | 380 Yes | 37 No |
Post New Answer View All Answers
Can we pass null as argument in java?
Can we have two methods in a class with the same name?
What is anagram in java?
Is arraylist zero based?
What is string example?
What are the rules for naming an array?
What is the list interface in java programming?
What is the use of default method in interface in java? Explain
What is null data type?
What does || || mean in math?
What is a final class ?
What are pass by reference and pass by value?
Can a private method be declared as static?
What is data string?
What is prime number in java?