Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 1

Table Comparing C, C++ and Java This table is a summary of the differences found in the article.

Feature Paradigms C Procedural C++ Procedural, OOP, Generic Programming Java OOP, Generic Programming (from Java 5) Java byte code Managed, using a garbage collector

Form of Executable Native Compiled Source Executable Native Code Code Code Memory management Pointers Preprocessor String Type Complex Data Types Inheritance Operator Overloading Automatic coercions Variadic Parameters Goto Statement Manual Yes, very commonly used. Yes Character arrays Manual

Yes, very commonly used, No pointers; references are but some form of references used instead. available too. Yes Character arrays, objects No Objects Classes Single class inheritance, multiple interface implementation No Not at all if loss could occur; must cast explicitly No No

Structures, unions Structures, unions, classes N/A N/A Yes, with warnings if loss could occur Yes Yes Multiple class inheritance Yes Yes, with warnings if loss could occur Yes Yes

You might also like