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 / seshadri pera

Ranjmella is obsolutely correct for this Question. JVM is
platform dependent but any JVM specific to that OS will run
the compiled .class file on any OS.

.class files are in bytecode it can be run on any platform
which has it's specific JVM installed in that.

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is void in java?

594


When is the arraystoreexception thrown?

571


What is the differences between c++ and java? Explain

588


Where pragma is used?

603


Explain heap sort?

701






What about main thread in java?

652


What is default locale java?

539


What is treemap in java?

554


How will you load a specific locale?

540


Differentiate between the constructors and methods in java?

511


What is io stream in java?

522


How is garbage collection controlled?

737


You're given a Boolean 2D matrix, can you find the number of islands?

602


Why set do not allow duplicates in java?

583


What is difference between path and classpath in java?

487