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

QUANTUM COMPUTING IN SECURITY:A GAME CHANGER IN DIGITAL WORLD

Blog banner

Dr. Venkadavarahan

Blog banner

The Power of Teamwork: Learning Collaboration Through Everyday Activities

Blog banner

Self-love: Being the reason of your own smile

Blog banner

Photography

Blog banner

How GIS in Agriculture Eliminates Guesswork

Blog banner

STARVATION

Blog banner

Lifestyle of a photographer

Blog banner

Revolutionary AI Tool: ChatGPT

Blog banner

Functions of operating system

Blog banner

Data Science & AI

Blog banner

Why Friendship at Work is Important

Blog banner

PROCESS CONTROL BLOCK IN OS

Blog banner

Memory Management

Blog banner

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

Blog banner

evolution of operating system - Disha Parekh

Blog banner

INTERNET

Blog banner

Love is in air.....

Blog banner

Different Types of Data

Blog banner

Riddhi Miyani 53003220140

Blog banner

GIS REMOTE SENSING

Blog banner

Social Network Analysis: Ek Naya Nazariya Data Science Mein

Blog banner

Gis in agriculture and farming

Blog banner

Web browser forensics:Tools,Evidence collection and analysis

Blog banner

Operating system

Blog banner

Education: Key to your Prosperity

Blog banner

operating system

Blog banner

1.1 basic elements

Blog banner

Skills An Ethical Hacker Must Have

Blog banner

Mumbai Metro 3

Blog banner

Social Engineering Deceptions and Defenses

Blog banner

Biometric Authentication and Privacy: Balancing Ethical Concerns

Blog banner

Security Issues and Countermeasures

Blog banner

Ola

Blog banner

Memory Management

Blog banner

objectives and functions of operating system

Blog banner

Old age lifestyle

Blog banner

Anomaly Detection in Behavioral Data Using Machine Learning

Blog banner

How to insert contacts in zoho crm using php

Blog banner

Distributed Denial of Service (DDoS) attack

Blog banner

Decision Tree: A Diagram Model

Blog banner

FRIENDSHIP

Blog banner