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


Please Help Members By Posting Answers For Below Questions

What is the abstraction?

803


What is loop in java?

775


What are the differences between wait() and sleep()?

767


Can we make constructors static?

971


What is singleton class in ruby?

807


What is floating data type?

766


What is private public protected in java?

819


What is meant by data hiding in java?

876


How does singleton class work?

760


What is the final method?

851


What is the difference between integer parseint and integer valueof?

777


What does next mean in java?

768


Can we call thread start () twice?

721


What is the purpose of abstract class?

733


Explain java heap space and garbage collection?

809