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

Can a class be private?

508


Is null a string?

546


What is difference between wait and notify in java?

537


What is the difference between iterator and list iterator?

529


Does java return by reference?

530






Is 0 true or false?

510


Write a program to show whether a graph is a tree or not using adjacency matrix.

588


What is a treemap in java?

532


What is yield () in java?

478


Can we create object of inner class in java?

490


What is the difference between length and size in java?

489


Explain the use of volatile field modifier?

629


What do you understand by a Static Variable?

622


What is static and final keyword in java?

573


How do I get the | symbol on my keyboard?

591