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
494 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

Mobile Security

Blog banner

APACHE KAFKA

Blog banner

Landslide Hazard

Blog banner

Apple

Blog banner

Memory Management

Blog banner

Use case of K-means clustering

Blog banner

Festive Ethnic Wear Guide: Patola-Inspired Looks for Every Celebration

Blog banner

The Art Of Getting What You Want In Life....

Blog banner

Virtual memory

Blog banner

Protect yourself from System Hacking with these Simple Steps

Blog banner

bulk email software

Blog banner

Understanding Univariate, Bivariate, and Multivariate Analysis in Data Science

Blog banner

Process Description

Blog banner

What Function Does SEO Serve in Digital Marketing?

Blog banner

Fitness

Blog banner

Reconnaissance

Blog banner

geographic information system (GIS)

Blog banner

10 Amazing facts about Tokyo Ghoul

Blog banner

GIS Applications: How Different Industries are Leveraging Geospatial Data

Blog banner

Network Footprinting in Cybersecurity

Blog banner

Ransomware

Blog banner

What Are Electro-Forged Gratings? Benefits, Applications, and Why Industries Prefer Them

Blog banner

Blockchain Transactions

Blog banner

virtual memory

Blog banner

BUFFER OVERFLOW_142

Blog banner

Who decides your overthinking, anyway?

Blog banner

Why is it hard to design an Operating Systems ?

Blog banner

How Does Preschool Help Children Become Better Decision Makers?

Blog banner

Brain wash of social media

Blog banner

What is the point of living if we can die at any moment of our lives ?

Blog banner

Why Every Preschooler Learns at Their Own Pace?

Blog banner

MySQL

Blog banner

NodeJs

Blog banner

Dekkers Algorithm

Blog banner

PROCESS STATE:

Blog banner

VIRTUAL MACHINE

Blog banner

Virtual Machine

Blog banner

Session Hijacking Techniques

Blog banner

Email Privacy

Blog banner

Real time scheduling

Blog banner

Stories Woven in Silk: The Meaning Behind Patola Motifs

Blog banner

Building Confidence in Children Through Daily Routines and Play

Blog banner