Tuesday, 21 August 2012

Difference between java and C ++

  • C++ was designed for systems and applications programming, extending the C programming language. To this procedural programming language designed for efficient execution, C++ has added support for statically-typed object-oriented programming, exception handling, scoped resource management, and generic programming, in particular. It also added a standard library which includes generic containers and algorithms.
  • Java was created initially as an interpreter for printing systems but grew to support network computing. It is good for beginner programmers because it is easier to see how things work, with the already made methods(functions) being more like real words and it being very object-oriented. Sun Microsystems used to use it for the basis of their "HotJava" thin client system. It relies on a virtual machine to be secure and highly portable. It is bundled with an extensive library designed to provide a complete abstraction of the underlying platform. Java is a statically-typed object-oriented language that uses a syntax similar to C++, but is not compatible with it. It was designed from scratch with the goal of being easy to use and accessible to a wider audience. It has a thing called Javadoc that explains every part in detail.[vague] It is usually 1X - 4X slower than C++.[citation needed]

No comments:

Post a Comment