Here’s a comparative analysis of C/C++ vs Java Object Oriented Programming.
Overall, there are very few differences and large set of similarities between Object Oriented Programming approach and C++ as C++ itself is considered as an Object Oriented based programming language.
When C was introduced as a programming language, it lacked the features of object orientation and then it was improved to be called as C++ with the power of Object Oriented approach.
The programming languages like Java and C# are also object oriented based programming languages but differences are huge.
Now let us discuss some of the differences and similarities between all the three programming languages – C++, Java and C# solely on the basis of Object Oriented approach of programming.
• C++ and C# supports Pointers, but not Java
• C# and Java does not Support Operator Overloading, but C++ does
• Java and C++ are not completely Object Oriented based, but C# is completely Object Oriented
• C++ and C# is capable of defining pre-processors, but not Java
• C# and C++ supports structures, but Java does not support structures
• Both C# and C++ has the capability of supporting Enums and Unions, but Java doesn’t!
• C++ can have independent methods, but Java and C# cannot have and must come inside classes
• Java does not support goto statement, but C# and C++ support it
• C# and Java has Garbage Collection capability, but it is absent in C++
• Multiple inheritances are supported in C++, but not in Java and C#
• C++ is statically typed, whereas C# and Java are dynamic in nature
• C# and Java are high level programming languages, while C++ is a middle level programming language
So, there you have some of the striking similarities and differences between C++ and Object Oriented Programming languages, but this comparison is not exhaustive by any means… There are tons of differences between C/C++ vs Java Object Oriented Programming approach, and in most of the web apps, Java finds its place, while C/C++ has its own share of application, especially in network programming (parallel port programming in c)
C/C++ vs Java Object Oriented Programming
Subscribe
Subscribe to our e-mail newsletter to receive updates.


April 6, 2011
Java