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 hotjava?

644


What is the difference between actual and formal parameters?

592


What is externalizable?

698


What is a vararg?

657


Why declare Main() inside the class in java ?

690






How many static init can you have?

782


What is the difference between an if statement and a switch statement?

752


Name few "optional" classes introduced with java 8 ?

736


What is a key in java?

587


What is the access scope of a protected method?

637


What is the significance of continue jump statement? Explain with an example.

858


What is :: operator in java 8?

665


What are the different tags provided in jstl?

655


How do listeners work?

616


When can you say a graph to be a tree?

725