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
What are the different http methods?
How is Object Oriented Programming different from Procedure Oriented Programming?
Which is bigger double or float?
What is use of super keyword in java?
What is the use of arraylist in java?
what is the constructor and how many types of constructors are used in java?
What are synchronized blocks in java?
What is the meaning of course?
Explain differences between collection api and stream api?
Explain about static imports in java?
What is the final access modifier in java?
What is the use of protected in java?
Tell us something about different types of casting?
What is the difference between array and array list in java?
What is float in java?