GeekInterview.com
   Home |  Tech FAQ  |   Interview Questions |  Placement Papers |  Tech Articles |  Learn |  Freelance Projects |  Online Testing |  Geeks Talk |  Job Postings |  Knowledge Base | Site Search |  Add/Ask Question

  GeekInterview.com  >  Placement Papers  >  HCL

 Print  |  
Question:  what is platform independent?why java is called so?and what is platform dependent,why C,C++ is called so?



August 08, 2008 06:17:18 #4
 Sharmila Devi   Member Since: August 2008    Total Comments: 1 

RE: what is platform independent?why java is called so?and what is platform dependent,why C,C++ is called so?
 
In Java, the source program is first compiled that generates BYTE CODE which is common for all platform. The Byte code is given to JVM (Interpreter) each platform has its own JVM. which converts byte code into machine language that can be understood by the particular machine only. Once the machine having JVM it can run any java program. In C, C++ the source program directly compiled into machine code, which is platform dependent.
     

 

Back To Question