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 the difference between class & structure?
Why java is said to be pass-by-value ?
Explain the importance of throwable class and its methods?
Is array a class?
What is bean? Where it can be used?
how to create multithreaded program? Explain different ways of using thread? When a thread is created and started, what is its initial state? Or extending thread class or implementing runnable interface. Which is better? : Java thread
I want to re-reach and use an object once it has been garbage collected. How it's possible?
How you can force the garbage collection?
What do you mean by checked exceptions?
What is prefix of a string?
How do you sort a string in java?
Can we have multiple classes in a single file?
Implement a stack with push (), pop() and min() in O(1) time.
Explain the access modifiers for a class, method and variables?
Give me some null interfaces in java?