ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
tip       Ask Questions on ANYTHING, that arise in your Daily Life at     FORUM9.COM
Google
 
Categories  >>  Software  >>  Core Java  >>  Java J2EE  >>  Java Related
 
 


 

 
 Core Java interview questions  Core Java Interview Questions
 Advanced Java interview questions  Advanced Java Interview Questions
 Swing interview questions  Swing Interview Questions
 EJB interview questions  EJB Interview Questions
 Servlets interview questions  Servlets Interview Questions
 Struts interview questions  Struts Interview Questions
 JDBC interview questions  JDBC Interview Questions
 JMS interview questions  JMS Interview Questions
 SunOne interview questions  SunOne Interview Questions
 J2EE interview questions  J2EE Interview Questions
 Weblogic interview questions  Weblogic Interview Questions
 Websphere interview questions  Websphere Interview Questions
 Java Networking interview questions  Java Networking Interview Questions
 Java J2EE AllOther interview questions  Java J2EE AllOther Interview Questions
Question
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?
 Question Submitted By :: Ramkrishna.cse
I also faced this Question!!     Rank Answer Posted By  
 
  Re: 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
# 1
It will work, becouse java is platform independent.
 
Is This Answer Correct ?    2 Yes 1 No
Chandu
 
  Re: 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
# 2
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 ?    11 Yes 1 No
Rajmallela
 
 
 
  Re: 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
# 3
ya it will work.bcoz java is platform independent.
 
Is This Answer Correct ?    0 Yes 0 No
Stranger_ajnabi53@yahoo.c
[Student]
 
  Re: 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
# 4
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 ?    0 Yes 0 No
Seshadri Pera
 

 
 
 
Other Core Java Interview Questions
 
  Question Asked @ Answers
 
Default layout of Dialog object?  1
jdbc drivers? Wipro7
what is main purpose of abstract class?  2
what is the use of abstract class and interface with example? DNS2
what is the difference between AWT and SWING what is the advantage of using swing?  3
how many types of cloning? Mobily1
can any one tell me when do u go for inheritance and polymorphism  1
how can we import the user defined package without classpath?  1
Explain final, finalize() and finally?  6
How to call a Stored Procedure from JDBC? Satyam2
what is jndi? TCS1
what is webservices? CTS1
Can we call the Thread.sleep in Synchyronozed block? Logica-CMG4
What is the use join() in Threads ? HCL4
which class to use when concatenating strings in a loop. IBM2
What are MalformedURLException and UnknownHost Exceptions and whey they will be thrown?  1
Different types of modifiers? RoboCom3
10. class Nav{ 11. public enum Direction { NORTH, SOUTH, EAST, WEST } 12. } 13. public class Sprite{ 14. // insert code here 15. } Which code, inserted at line 14, allows the Sprite class to compile? a)Direction d = NORTH; b)Nav.Direction d = NORTH; c)Direction d = Direction.NORTH; d)Nav.Direction d = Nav.Direction.NORTH;  1
what is difference between validation.xml & validation rules.xml? BirlaSoft5
What is a Java package and how is it used?  2
 
For more Core Java Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com