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 a key in java?
what type of questions asked for barclays technologies pune please send urgent
What is generic class?
What are locale settings?
Write an algorithm program in java for the following question.. In a VLSI design techniques,they used rectangles to design circuits. EVery rectangle is to be placed according to x,y coordinates. Check whether or not two rectangles overlap each other. Here overlapping of rectangles is acceptable, if 1) one rectangle intersect with other. 2) one rectangle fully covers other. The time of algorithm should not exceed o(n logn).
What is the symbol for line break?
What does string intern() method do?
What is collection class in java? List down its methods and interfaces.
Why synchronization is important in java?
Can you override a final method?
Why do we use predicate in java?
Which java collection does not allow null?
what is the role of xml in core java?? and how we can use it?? can somebody give a sample program with explanation and from where i can read more about xml?????
What is covariant return type?
What is a class component?