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's a method in programming?
Why is string class considered immutable?
Is it necessary that each try block must be followed by a catch block?
What is use of inner class in java?
What is a string token?
Write a java program to count the number of words present in a string?
Which package is always imported by default?
What are the two ways of implementing multi-threading in java?
What is the difference between a static and a non-static inner class in java programming?
What is difference between printf and scanf?
Why can't you declare a class as protected?
What is codebase?
What are basic keywords?
What are the advantages and disadvantages of reference counting in garbage collection?
What is a singleton in genetics?