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
Can a class have a static inner class?
What are the advantages of arraylist over arrays?
Where is const variable stored?
Give us a program to check for parenthesis matching using stack.
why would you use a synchronized block vs. Synchronized method? : Java thread
Is java same as core java?
What is package protected in java?
In Java list the methods that can be overridden?
Where is java located?
What is type parameter in java?
when to use ArrayList and when to use HashMap in webApplication.
Explain the access modifiers for a class, method and variables?
How do you use compareto method?
Is empty .java file name a valid source file name?
How to create a custom exception?