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
Explain the differences between static and dynamic variables?
Which access specifier can be used with class ?
Define array. Tell me about 2-D array.
What are features of java?
If we allocate the memory using 'new' & de-allocated using 'free' then what will happen?
Why map is used in java?
What do you understand by synchronization?
what is meant wrapper classes?
Where are local variables stored?
Is java a compiler?
explain local datetime api in java8?
What are the main concepts of oops in java?
explain the concept of virtual method invocation in polymorphism in detail?
How do you detect memory leaks?
What is n in java?