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
In multi-threading how can we ensure that a resource isn't used by multiple threads simultaneously?
Is array serializable java?
Why does java have different data types for integers and floating-point values?
What is a static method in java?
What is array list in java?
What class allows you to read objects directly from a stream?
How many types of equations are there?
Is array an object in java?
How are variables stored?
Can java list contain duplicates?
What is a values collection view ?
What is array length in java?
How do you use compareto in java?
What is double parsedouble in java?
What does isempty () do in java?