Why Java is a platform independent language?Explain byte code
and JVM
Answer Posted / nilanjan
At first the java source code is compiled and then it is
interpreted to a optimized set of executable statements.
After compiling the source code the bytecode is generated
which is same for all platforms i.e OS. This byte code
needs JVM(java virtual machine) to be interprated which is
defferent for different OS i.e platform.
Due to the byte code which is same for all JVM java is
explicitely known as platform independent language.
source code ---------> bytecode ----------> executable
compilation same interpration
for all by JVM
JVM
Is This Answer Correct ? | 12 Yes | 4 No |
Post New Answer View All Answers
Which is more secure: java or activex? : java security
How do I run a java program from the command line?
Can I have multiple main methods in the same class?
What does @override mean in java?
In hibernate what is the difference between the Session and SessionFactory?
What is meant by rest api in java?
What is crud operations in java?
What is log4j in java?
Where is singleton design pattern used in java?
What is stateless in java?
How do I run a project in netbeans?
What is the difference between lambda expression and anonymous methods?
1.can i use super keyword in normal class(not inheritance) to call any method?if so how can i call particular variable? 2.In the inheritance how can i access the particular variable from the base class(it containing 5 variables) using super keyword?
What is gui in java with examples?
How long can a lambda function run?