Penguin
Note: You are viewing an old revision of this page. View the current version.

Java and C++ are similar languages both encouraging users to develop using the ObjectOriented? approach to software development. C++ is better suited to tailoring a program to the specifics of a particular environment whereas Java stresses portability and promotes approaches more suited to largescale application development.

Therefore C++ is more and more being used for smaller applications targeting a specific environment where splitsecond timing and the amount of space used are critical. Java is used mostly for largescale applications which are able to run in many different environments and where extensibility and longterm maintainability are critical.

C++ feastures:

  • templates?
  • near compatibility with C
  • multiple inheritance?
  • many features designed to have zero overhead if not used
  • manual memory management

Java feastures:

  • single inheritance?
  • comprehensive and standardised networking, GUI and database? libraries
  • language support for threading
  • language support for unicode?
  • garbage collection?