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

What is Amazon?

Blog banner

Risk mitigation and management

Blog banner

A buffer overflow

Blog banner

A-B-C of Networking: Part-2 (Components)

Blog banner

What are NFT s?

Blog banner

Simple Ways of Avoiding Basic Mistakes in Smart Phone Security

Blog banner

Business Intelligence v/s Big Data

Blog banner

In the world of Technology...

Blog banner

The Lunchbox That Came Back Untouched — How to Handle a Fussy Eater at Preschool Age

Blog banner

Principles of Service Operation

Blog banner

Operating System

Blog banner

Why Meal Maharaj Prioritises Seasonal Vegetables in Every Meal Box

Blog banner

The Everyday Parenting Dilemma: Safety Vs Independence

Blog banner

Hosting basics

Blog banner

BUFFER OVERFLOW_142

Blog banner

DATA WRANGLING

Blog banner

Things You Should Leave Behind In 2025, Whilst In 2026

Blog banner

Earth with no trees

Blog banner

Man VS Nature

Blog banner

Software

Blog banner

Veg Mix Pickle

Blog banner

Deadlock and Starvation

Blog banner

Memory Management Techniques

Blog banner

c

Blog banner

CRISP-DM Methodology

Blog banner

The 60-Minute Window: What to Do (And What NOT to Do) When You Knock Out a Tooth

Blog banner

Big Data Architecture

Blog banner

Overcoming the bedtime brushing Battle with Dr. Roxanne Irani, Dentist in Maroubra

Blog banner

Real-time Scheduling - 53003230061

Blog banner

Deadlock in operating system

Blog banner

What if COVID does not exist!

Blog banner

Multicore CPUs

Blog banner

Deadlock

Blog banner

Platonic Solids

Blog banner

BENIFITS OF YOGA

Blog banner

Eating Well With Meal Maharaj on Busy Workdays Without Cooking

Blog banner

Evolution of Operating system

Blog banner

Threat from Inside: Educating the Employees Against Cyber Threats

Blog banner

On-Page SEO

Blog banner

Admissions Open: Why This Is the Right Time to Choose the Best School for Your Child

Blog banner

Supervised and unsupervised learning

Blog banner

Old age lifestyle

Blog banner