HELLO
EVERYONE!
TODAY WE DISCUSS ABOUT THE
BASIC DIFFERENCE BETWEEN
C,C++ AND JAVA.
OVERVIEW
C , C++ and JAVA are the high level
programming language
With there own functionality and
characteristics.
And on the basis of that we are going
to differentiate them respectively.
ORIGIN
C : It is based on the concept of BCPL
(Basic command programming language)
C ++ : It is an extension of c language.
JAVA: The concept of java is based on
both C and C ++.
PREPROCESSOR
DIRECTIVE
C : It contains #include, #define etc.
C ++ : It also contains #define , # include
etc.
JAVA : It uses package import
java.util.*;
PROGRAMMING
PATTERN
C : It is procedural programming
language.
C++: It is an object oriented
programming language.
JAVA: It is a pure object oriented
programming language.
SOURCE FILE
EXTENTION
C : The source file has a .c
extension
C ++ : It has a .cpp extension .
JAVA : It has a .java extension.
CODE EXECUTION
C : The code is executed directly
C ++ : The code executed directly.
JAVA : The code executed through
JVM.
PLATFORM DEPENDENT
C : C is a platform dependent .
C ++ : It is also a platform
dependent.
JAVA: It is a platform independent
due to bytecode.
TRANSLATER
C : It uses compiler to translate the code
into machine code.
C ++ : It also use compiler .
JAVA: It use compiler as well as
interpreter to convert the code into
machine code.
POINTER
C : It supports pointer.
C ++ : It also supports pointer.
JAVA: It does not supports pointer
due to security reason.
CONSTRUCTOR AND
DESTRUCTOR
C : C does not supports constructor
and destructor.
C ++ : It supports both.
JAVA : it supports only constructor.
MEMORY MANAGEMENT
C: It uses malloc() ,free(), realloc() etc to
manage the memory.
C ++ : It use new and delete to manage
the memory .
JAVA
: It use garbage collector to
manage space.
OVERLOADING
C : It does not supports overloading.
C ++ : It supports both method and
operator overloading .
JAVA: It supports only method
overloading.
USED FOR
C : It is used for system programming such as to
develop the operating system ,drivers, compilers
etc.
C ++ : It is used for high performance
applications like operating system and
applications ,game software etc.
JAVA : It is used for web application(java script) ,
mobile application ,server side technology etc.
T HE E ND
SENDYOUR
FEEDBACK
OU
Y
N K
H A
T