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 console based application in java?
What are the five major types of reference sources?
Where is stringbuffer stored?
What are the fileinputstream and fileoutputstream?
What is the method in java?
Does hashset allow duplicates in java?
Difference between static binding and dynamic binding?
What is class forname used for?
explain the concept of virtual method invocation in polymorphism in detail?
Does java vector allow null?
What is gui programming?
Can list be final in java?
Implement two stacks using a single array.
What are checked exceptions?
How does system arraycopy work in java?