Basic Difference Between C, C++ and Java Programming

C is a general-purpose high level language that was developed by Dennis Ritchie in 1972 in bell laboratory for the Unix operating system. Today C is the most widely used System Programming Language.
it is a advance version of B language which was introduced around 1971. C is a structured language which is easy to learn and produces efficient programs. it`s a top-down approach. It can handle low-level activities and can be compiled on a Different operating systems.

C++ is a general purpose programming language developed by Bjarne Stroustrup in 1979 at Bell Labs, designed to make programming more attractive for the serious programmers.C++ is a advance version of the C programming language. In addition to the facilities provided by C, C++ provides flexible and efficient facilities for defining new types.
The key concept in C++ is class. A class is a user defined type.

Java is a programming language created by James Gosling from Sun Microsystems in 1991.

The first version (java 1.0) was released in 1995. The Old name of Java was Oak. Java is now taken by oracle corporation.The acquisition of Sun Micro-systems by Oracle Corporation was completed by Oracle in January 2010.The current version of Java is Java 1.7 ( Java 7 ). Java is a Programming language as well as a Platform itself.

There are some basic difference we should know.

  1. In C and C++ we uses header files but in java we use packages.
  2. In C and C++ we used pointers but in java we do not use any pointers.
  3. Java Does not support storage classes, like auto, external, register etc.
  4. The C and C++ code is converted in machine code after compilation but the the java source code is converted in byte code(which is intermediate code between machine language and source code) then after it is converted into machine code using JVM.
  5. Java does not support operator overloading but c++ supports operator overloading.
  6. In C and C++ we uses header files but in java we use packages.
  7. C and C++ used the ‘#include’ Keyword to add the header files but in java we use the ‘import’ keyword to Add the packages.
  8. In C++ the multiple inheritance is possible using class. but in java we have to use the interface to implement the multiple inheritance.
  9. In java we cannot use the GOTO keyword.
  10. In Java we use the finalize method for garbage collection but in c++ we use Destructor.
  11. Java does not support structure, union, enum but in c++ we can use these data types.
How to differe the c and c++ to each other
Major difference between c, c++ and java
Difference between c and c++
How to display system date time in c
Basic Difference between C, C++ and JAVA