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
What is the final class modifier?
What is java string pool?
How does system arraycopy work in java?
How do you sort in ascending order in java?
What is final int?
Explain aggregation in java?
Difference between operator overloading and function overloading
What is ascii code?
What about main thread in java?
Does treeset use compareto?
Are floats faster than doubles?
Is java same as core java?
Why singleton class is used in java?
What is the tradeoff between using an unordered array versus an ordered array?
Is string is a class in java?