wisemonkeys logo
FeedNotificationProfileManage Forms
FeedNotificationSearchSign in
wisemonkeys logo

Blogs

'C', 'C++' and 'Java': Head-to-Head

profile
Chayan Bhattacharjee
Mar 30, 2017
0 Likes
0 Discussions
492 Reads

Head-To-Head comparison of C, C++ and JAVA

C, C++ and Java are the most popular programming languages used today at a broad level. They have a pretty similar syntax for basic concepts. Most of the basic constructs like if statements, loops, function syntax, switch case statements and concepts like recursion are still valid. Many other concepts like the syntax for comments, and the idea of static class variables, also hold in both Java and C++. Java uses the syntax of C and structure of C++ language.There are many such aspects that need to be looked up and their comparison with java.

AspectsCC++Java
Developed Year197219791991
Developed ByDennis RitchieBjarne StroustrupJames Gosling
Successor of BCPLCC(Syntax) & C++ (Structure)
ParadigmsProceduralObject OrientedObject Oriented
Platform DependencyDependentDependentIndependent
Keywords326350 defined (goto, const unusable)
Datatypes : union, structureSupportedSupportedNot Supported
Pre-processor directivesSupported (#include, #define)Supported (#include, #define)Not Supported
Header filesSupportedSupportedUse Packages (import)
InheritanceNot SupportedSupportedMultiple Inheritance not Supported
OverloadingNot SupportedSupported (Method & Operator)Operator Overloading not Supported
PointersSupportedSupportedNot Supported
Code TranslationCompiledCompiledInterpreted
Storage AllocationUses malloc, callocUses 'new' Keyworduses garbage collector
Multi-threading and InterfacesNot SupportedNot SupportedSupported
Exception HandlingNot SupportedSupportedSupported
Storage class: auto, externSupportedSupportedNot Supported
DestructorsNo Constructor or DestructorSupportedNot Supported
Database ConnectivityNot SupportedSupported but complicatedSupported

The comparison chart just gives us a hint that which programming language provides which features. Thus for choosing any language for programming, be sure to know the basics. None of the programming language can claim to be "THE BEST", it all depends upon the choice of the individual. Java is definitely one of the mostly used language. The upcoming languages also has its features and older languages like C, VB, etc also has its own beauty.

 

Comments ()


Sign in

Read Next

Interrupts in OS

Blog banner

Predictive Analytics: How Data Science Predicts Trends(Weather ,Stock Market,Sales Forecasting ).

Blog banner

Interesting fact about kangaroo.

Blog banner

VIRTUAL MACHINES

Blog banner

Southern Turkey Earthquake: Causes and Consequences of a Tragic Natural Disaster

Blog banner

What is Internet

Blog banner

Clustering Techniques

Blog banner

Benefits and drawback of web security.

Blog banner

Kafka - A Framework

Blog banner

Women empowerment

Blog banner

Mango Raisin Chutney (sweet mango raisin spread)

Blog banner

Deadlock and starvation

Blog banner

semaphores

Blog banner

IT Service Continuity Management

Blog banner

Introduction my self

Blog banner

Deadlock and Starvation in an Operating System

Blog banner

Modern operating system

Blog banner

Memory Management in Operating System

Blog banner

Know your Processors!

Blog banner

Data Warehousing

Blog banner

Deadlock

Blog banner

Memory management

Blog banner

Women Empowerment

Blog banner

Photorec - media recovery tool

Blog banner

The Role of Cyber Forensics in Addressing Cyber security Challenges in Smart Cities

Blog banner

Virtual Memory - Explaination, Working, Steps

Blog banner

Threads

Blog banner

Brilliant WhatsApp Features Upcoming in 2023

Blog banner

Digital Marketing - The new way to reach end consumer

Blog banner

MODERN OPERATING SYSTEM

Blog banner

MULTITHREADING:ENHANCEING PERFORMANCE AND EFFICIENCY IN COMPUTING

Blog banner

Ethical Hacking

Blog banner

Top 5 Tech Innovations of 2018

Blog banner

Beauty of indian railway

Blog banner

Modern operating systems (OS)

Blog banner

Developments in Modern Operating Systems

Blog banner

Vulnerability Assessment (Vulnerability Analysis)

Blog banner

Threading

Blog banner

HR Automation : Need of the hour

Blog banner

Raising Emotionally Intelligent Students: The Classroom Beyond Academics

Blog banner

Race Condition in Operating Theatre

Blog banner

SMARTSHEET MANAGEMENT SOFTWARE

Blog banner