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 a method and a procedure?
what are the disadvantages of indexes in oracle?
How many arguments can a method have java?
which class is the wait() method defined in? : Java thread
What is final access modifier in java?
What are the different approaches to implement a function to generate a random number?
Explain about fail safe iterators in java?
How can we find the sum of two linked lists using stack in java?
What is an empirical question?
What is java util concurrentmodificationexception?
Is namespace same as package in java?
In a class implementing an interface, can we change the value of any variable defined in the interface?
Is java code slower than native code?
What are different access specifiers in java? Explain
What is the purpose of using the java bean?