Switch to full style
Java2 codes,problems ,discussions and solutions are here
Post a reply

C++ & Java Portability and performance!!!!

Thu Jun 28, 2007 5:41 am

The difference between C++ and Java portability and performance:
------------------------------------------------------------------


C and C++ both compile to native machine code. This means that, with a good compiler, programs written in these languages will perform very well. However, it also restricts them to running on the platform they were compiled to run on.

Java generally compiles to Java byte-code, which then runs on top of a virtual machine (the JVM). The JVM has to turn instructions in the bytecode into instructions that are understood by the machine that the bytecode is running on. This gives a runtime performance penalty (although this is getting less significant as the JVM improves and computers get faster).

However, now only the virtual machine (and standard library) have to be ported to different platforms, then the bytecode for many Java programs can be executed on that platform. So bytecode is portable accross different operating systems and processors.



Post a reply
  Related Posts  to : C++ & Java Portability and performance!!!!
 MYSQL best performance optimized parameters for 4G server     -  
 jobs-130748-Performance Tester in Bangalore, Kolkata     -  
 2d game in java-Monster-Java 2D Game Graphics and Animation     -  
 Using FTP in java     -  
 what is java     -  
 Java course     -  
 need help in java     -  
 What is Java API?!!!     -  
 java or .net     -  
 Java Chat     -  

Topic Tags

Java Basics