Why Java is a platform independent language?Explain byte code
and JVM
Answer Posted / hemalatha
When Java Code is compiled a byte code is generated which
is independent of the system. This byte code is fed to the
JVM (Java Virtual Machine) which is resided in the system.
Since every system has its own JVM, it doesn't matter where
you compile the source code. The byte code generated by the
compiler can be interpreted by any JVM of any machine.
Hence it is called Platform independent Language.
| Is This Answer Correct ? | 23 Yes | 3 No |
Post New Answer View All Answers
What is lambda expression in mvc?
Do I need jdk or jre?
What is repository pattern in java?
Who developed rxjava?
What is an actionevent in java?
What is the difference between lambda expression and anonymous methods?
What is phantom memory?
Which framework is best for rest api java?
What is dialect in java?
What is cdi bean in java?
What is type inference? Is type inference available in older versions like java 7 and before 7 or it is available only in java se 8?
What is java net url?
How do I run a java project in netbeans?
Why do we need framework in java?
What is ioexception in java?