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 / rajmallela

Java is platform independent. but JVM is not platform independent .it is platform dependent.Each O.S has its own JVM
That JVM can understand .class file irrespective of the O.S from which it(.class file) is coming . So widows generated .class file will work in Linux O.S.(b/z Linux JVM can understand .class file obviously)

Is This Answer Correct ?    22 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between a method and a procedure?

760


what are the disadvantages of indexes in oracle?

2076


How many arguments can a method have java?

803


which class is the wait() method defined in? : Java thread

725


What is final access modifier in java?

826


What are the different approaches to implement a function to generate a random number?

798


Explain about fail safe iterators in java?

789


How can we find the sum of two linked lists using stack in java?

779


What is an empirical question?

766


What is java util concurrentmodificationexception?

710


Is namespace same as package in java?

748


In a class implementing an interface, can we change the value of any variable defined in the interface?

726


Is java code slower than native code?

769


What are different access specifiers in java? Explain

836


What is the purpose of using the java bean?

811