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
Can you sort a list in java?
What is an infinite loop? How infinite loop is declared?
How do constructors use this() and super()?
What is difference between wait and notify in java?
What is the syntax and characteristics of a lambda expression?
Is array serializable java?
Is set thread safe java?
Define canvas?
What is stringreader?
What is the use of :: in java?
What is the use of System class?
What is the difference between actual and formal parameters?
Why java applets are more useful for intranets as compared to internet?
Tell some latest versions in JAVA related areas?
What is e in java?