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

What are actual parameters?

734


which one is more efficient int x; 1. if(x==null) 2.if(null==x) state which one either 1 or 2?

10096


I want to persist data of objects for later use. What is the best approach to do so?

806


How do you read and print a string in java?

725


Is binary a low level language?

703


Can we use String with switch case?

862


Where is the singleton class used?

776


Can I use % with real numbers?

750


What are the core java topics?

783


when a request is generated from apache tomcat 5.5 and goes to oracle 10g or mysql,,, how the oracle or mysql reads the request as apache is a web server and oracle 10g is application server? when the oracle 10g provides response, how the apche tomcat reads it???

1900


What is bubble sort in java?

847


Explain the concept of proper inheritance?

824


What is object data type?

778


Write a program in java to create a doubly linked list containing n nodes.

742


Is map sorted in java?

814