0% found this document useful (0 votes)
43 views1 page

Table Comparing C

This table compares key features of C, C++ and Java programming languages. C uses procedural programming and has manual memory management using pointers. C++ adds object-oriented programming, generics and references but still allows pointers. Java uses object-oriented programming, automatic memory management with a garbage collector, generics and disallows pointers in favor of object references.

Uploaded by

nishasaiyed2304
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
43 views1 page

Table Comparing C

This table compares key features of C, C++ and Java programming languages. C uses procedural programming and has manual memory management using pointers. C++ adds object-oriented programming, generics and references but still allows pointers. Java uses object-oriented programming, automatic memory management with a garbage collector, generics and disallows pointers in favor of object references.

Uploaded by

nishasaiyed2304
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 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