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
What is hotjava?
What is the difference between actual and formal parameters?
What is externalizable?
What is a vararg?
Why declare Main() inside the class in java ?
How many static init can you have?
What is the difference between an if statement and a switch statement?
Name few "optional" classes introduced with java 8 ?
What is a key in java?
What is the access scope of a protected method?
What is the significance of continue jump statement? Explain with an example.
What is :: operator in java 8?
What are the different tags provided in jstl?
How do listeners work?
When can you say a graph to be a tree?