No backward compatibility with any previous language. The differences are as follows : C++Ĭompatible with C source code, except for a few corner cases. The different goals in the development of C++ and Java resulted in different principles and design trade-offs between the languages. It was designed from scratch with the goal of being easy to use and accessible to a wider audience.
Java is a statically-typed object-oriented language that uses a syntax similar to C++, but is not compatible with it. It is bundled with an extensive library designed to provide a complete abstraction of the underlying platform.
It relies on a virtual machine to be secure and highly portable. Sun Microsystems used it for the basis of their "HotJava" thin client system. Java was created initially as an interpreter for printing systems but grew to support network computing.It also added a standard library which includes generic containers and algorithms. 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. C++ was designed for systems and applications programming, extending the C programming language.The differences between the C++ and Java programming languages can be traced to their heritage, as they have different design goals. 4 Official standard and reference of the language.