Why Java is a platform independent language?
Answer Posted / ashwani maddeshiya
This is because of the magic of Byte Code which is OS indepedent. When java compiler compile any code then it generate the byte code not the machine native code(unlike C compiler).Now this byte code need a interpreter to execute on a machine.This interpreter is JVM.So JVM read that byte code(that is machine indepedent) amd execute it. Different JVM is designed for different OS and byte code is able to run on different OS.
Is This Answer Correct ? | 12 Yes | 1 No |
Post New Answer View All Answers
How does hashset work in java?
What is the final field modifier?
What is a pattern what is an anti pattern?
Is string an object?
Do I need java on my computer?
Why are pointers not secure?
What is balanced tree in java?
What is the collections api?
How do I run java on windows?
What are advantages of exception handling in java?
What is jvm? How its run?
What is finally block?
Is void a data type in java?
What is the default size of set in java?
What are the important features of Java 11 release?