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
How do you read a char in java?
What is == and === in javascript?
Can arraylist hold different types java?
Explain purpose of sleep() method in java?
What are parameters in a method?
Why enumeration is faster than iterator?
Are constructors methods?
When a thread is executing a synchronized method , then is it possible for the same thread to access other synchronized methods of an object ?
What do you understand by the term wrapper classes?
What is the statements?
Is set sorted in java?
What is the difference between compiler and jvm?
What is a type parameter in java?
What is final class?
Why string is immutable or final in java