Vous êtes sur la page 1sur 1

October 7, 2019 [MR.SWAMI R.S.

[MOBILE NO :- +91-8275265361]]

Differences between C, C++ and Java


Metrics C C++ Java

Programming Object-Oriented
Procedural language Pure Object Oriented
Paradigm Programming (OOP)
Based on assembly
Origin Based on C language Based on C and C++
language
Dennis Ritchie in Bjarne Stroustrup in James Gosling in
Developer
1972 1979 1991
Interpreted language
Translator Compiler only Compiler only (Compiler +
interpreter)
Platform Dependency Platform Dependent Platform Dependent Platform Independent
Executed by JVM
Code execution Direct Direct (Java Virtual
Machine)
Approach Top-down approach Bottom-up approach Bottom-up approach
File generation .exe files .exe files .class files
Pre-processor Support header files Supported (#header, Use Packages
directives (#include, #define) #define) (import)
keywords Support 32 keywords Supports 63 keywords 50 defined keywords
Datatypes (union,
Supported Supported Not supported
structure)
Supported except
Inheritance No inheritance Supported
Multiple inheritance
Support Function
Operator overloading
Overloading No overloading overloading
is not supported
(Polymorphism)
Pointers Supported Supported Not supported
Allocation Use malloc, calloc Use new, delete Garbage collector
Exception Handling Not supported Supported Supported
Templates Not supported Supported Not supported
No constructor neither
Destructors Supported Not supported
destructor
Multithreading/
Not supported Not supported Supported
Interfaces
Database connectivity Not supported Not supported Supported
Supported ( auto, Supported ( auto, extern
Storage Classes Not supported
extern ) )
https://www.edureka.co/blog/difference-between-c-c-and-java

Java Programming [JPR-22412] 1

Vous aimerez peut-être aussi