Vous êtes sur la page 1sur 2

C,C++ and java all three are programming languages.

The basics
difference that comes in between these three languages are given
below.
C is a structured language. This language is platform dependent.
Platform dependent means you will not run any program of C from
one operating system to another operating system.
C++ is also platform dependent like C but this language is object
oriented language. By object oriented language you can easily
stop the flow of your program i.e from top to bottom or bottom to
top.ou can also say that in C++ we use classes and objects thats
why it is object oriented.
!ava is object oriented like C++ but this programming language is not
platform dependent. "t is platform independent. This is because it generates
byte code when you run your program not the e#e file thats why it is platform
independent.
Difference between C and Java :-
!ava doesn$t include the c uni%ue statement keywords si&e of and typedef
!ava doesn$t contain the 'atatype struct and union
!ava doesn$t defined the type modifiers keywords auto,e#tern,register,signed and
unsigned.
!ava doesn$t support an (#plicit Pointer type.
!ava doesn$t have a Pre)Processor*i.e +define,+include,+if def,
!ava re%uires that the functions with no argument s must be declared empty
paranthesis and not with the void keyword in C.
Difference between C++ and Java :-
!ava doesn$t support operator overloading
!ava doesn$t have template class has in C++
!ava doesn$t support multiple "nheritance.
!ava doesn$t support -lobal .ariables.
!ava doesn$t use the Pointers
!ava has replace 'estructor function with a finali&ed function.
There are no header files in java.
'ifference Between C /nd C++
0irst we have to know about C and C++
C++,as the name suggests is a super set of C./s a matter of fact,C++ can run most of C
code while C can not run C++ code.
1.C follows the procedural programming paradigm while C++ is a multi)Paradigm
2."n case of C,the data is not secured while the data is secured*hidden, in C++
3.C is a 4ow)level 4anguage 5hile C++ is a middle)level language.
6.C uses the top)down approach while C++ uses the bottom)up approach
7.C is function)driven while C++ is object )driven
8.C++ supports function overloading while C does not
9.5e can use functions in inside structures in C++ but bot in C.
:.The ;tandard input<output functions differ in the two languages that is C use scanf <
printf while C++ uses cin== < cout>> as their respective input and output functions
?.C++ allows reference variable while c does not
'ifference between C++ and !ava
C++ was mainly designed for systems programming and !ava was created initially
support network computing
1.C++ supports pointers where as !ava does not pointers.!ava support restricted pointers.
2.!ava is platform independent language but C++ is depends upon operating system
machine etc.
3.!ava uses Compiler and interpreter both and in C++ their is only compiler
6.Thread support built in java but not C++
7."nternet support is built in !ava but not in C++
8.There is no @goto@ ;tatement in java
9.!ava does not support unsigned "nteger
:.!ava support call by value only

Vous aimerez peut-être aussi