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

Difference between this() and super() ?

583


what is thread? : Java thread

561


Can we extend a class with private constructor?

529


what is ststic with example

1599


How many bytes is double?

551






Is map ordered in java?

537


In a program, initializing an array of 100 KB is throwing an out of memory exception while there is 100 MB of memory available. Why?

580


Explain about collection interface in java?

556


Explain the features of interfaces in java?

561


What is logical variable?

518


Define Multiprogramming and Multiprocessing in java.

586


What is charat java?

546


What is multiple inheritance? Is it supported by java?

530


What is the difference between abstraction and encapsulation?

565


What is the purpose of static methods and variables?

535