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
Hi.... I applied for the post of scientific officer/Engineer-SB(Programmer).Please post the syllabus and sample papers.
Why string is immutable with example?
What is static import in java?
How do you clear a method in java?
Can a constructor be made final?
What is the parse method in java?
Name component subclasses that support painting in java programming?
What is the purpose of garbage collection in java?
Explain the reason behind ending a program with a system.exit(0)?
Can we extend private class in java?
Explain about strings in java?
Can we sort array in java?
Explain about the dynamic behavior of core java?
Why is core java important?
What super () does in java?