Basic Difference between C, C++ and JAVAC 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.
- In C and C++ we uses header files but in java we use packages.
- In C and C++ we used pointers but in java we do not use any pointers.
- Java Does not support storage classes, like auto, external, register etc.
- 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.
- Java does not support operator overloading but c++ supports operator overloading.
- In C and C++ we uses header files but in java we use packages.
- C and C++ used the '#include' Keyword to add the header files but in java we use the 'import' keyword to Add the packages.
- In C++ the multiple inheritance is possible using class. but in java we have to use the interface to implement the multiple inheritance.
- In java we cannot use the GOTO keyword.
- In Java we use the finalize method for garbage collection but in c++ we use Destructor.
- 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
ConversionConversion EmoticonEmoticon