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 / anjan singh
Whenever you compile a java code, a bytecode is generated
(i.e. class file). This bytecode can be interpreted by JVM.
So any machine with any platform(i.e.OS) that has JVM on it
can interprete this bytecode or class file.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What are keywords in programming?
Give differences between Quicksort &Mergesort. When should these sorts be used andwhat is their running time in java?
what do you mean by classloader in java?
What is difference between static class and singleton pattern?
What is the difference between a constructor and a method?
What is a pointer and does java support pointers?
What is method in java with example?
Explain list interface?
What are predicates in java 8?
Can each java object keep track of all the threads that want to exclusively access it?
What is the Concept of Encapsulation in OOPS
Where is core java used?
How large is a boolean?
What is the difference between inner class and nested class?
Which number is denoted by leading 0x or 0x in java?