After compilation of java program we'll get .class code. If
it's generated in OS Windows XP will it work on OS Linux? If
yes why? If no why?
Answer Posted / rajmallela
Java is platform independent. but JVM is not platform independent .it is platform dependent.Each O.S has its own JVM
That JVM can understand .class file irrespective of the O.S from which it(.class file) is coming . So widows generated .class file will work in Linux O.S.(b/z Linux JVM can understand .class file obviously)
| Is This Answer Correct ? | 22 Yes | 1 No |
Post New Answer View All Answers
Variables used in a switch statement can be used with which datatypes?
Can inner class be public in java?
What is string buffer?
What is composition in java?
Can we serialize arraylist in java?
When will we prefer to use set and list in java and why?
Can we rethrow the same exception from catch handler?
Can you create an object of an abstract class?
What does void * mean?
What is difference between equals and hashcode method?
What is a map in java?
What is the difference between JVM and JRE?
Name some classes present in java.util.regex package.
How do you define a parameter?
What is a wrapper method?