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

Open Source Project By Google

Blog banner

WAKE UP ITS FOOD o'CLOCK...!!!!!

Blog banner

How to tie a Tie

Blog banner

MYNTRA

Blog banner

From Loom to Luxury: How Patola Elevates Modern Wardrobes

Blog banner

Threads

Blog banner

Scheduling

Blog banner

Depression

Blog banner

Virtual memory

Blog banner

Diwali

Blog banner

Mumbai Metro 3

Blog banner

Understanding Business Layer in Data Science

Blog banner

Big O Notation

Blog banner

Drawing tips for a beginner

Blog banner

A-B-C of Networking: Part-1 (Basics)

Blog banner

The War With Cold On Earth

Blog banner

HR Automation : Need of the hour

Blog banner

Virtual Memory

Blog banner

Multicore and multithreading 171

Blog banner

Disk scheduling

Blog banner

VIRTUAL MACHINE

Blog banner

New Horizon Europe project ‘EvoLand’ sets off to develop new prototype services.

Blog banner

Modern Operating System - Suren Kotian

Blog banner

Types of Hackers.

Blog banner

MENDELEY

Blog banner

Banaras

Blog banner

Cyber Security in Data Breaching

Blog banner

Nature’s Brush on Silk: The Secret Behind Patola Colours

Blog banner

Worms, viruses and Bots

Blog banner

Man is free by the birth .

Blog banner

Save Environment

Blog banner

Article on Fresh Book

Blog banner

Process and Threading

Blog banner

The most common internet security threats

Blog banner

Tomato Butter Sauce with Bucatini

Blog banner

Blockchain in IoT Applications

Blog banner

OS Assignment 1

Blog banner

Evolution of operating system

Blog banner

Define Instagram.

Blog banner

6 Digital Marketing Trends You Must Watch Out For In 2022

Blog banner

JIRA SOFTWARE

Blog banner

Real time scheduling

Blog banner