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

Cyber Forensics on IOT Devices

Blog banner

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

Blog banner

Network Security Risks

Blog banner

Operating system

Blog banner

HACKING MOBILE PLATFORM

Blog banner

Stay Close To Adventure In Arcadia, Florida At Oak Tree Hotel

Blog banner

Navigating the Digital Battlefield: Security Breaches and Effective Countermeasures

Blog banner

Revolutionary AI Tool: ChatGPT

Blog banner

Odoo

Blog banner

Concurrency and Deadlocks

Blog banner

Virtual memory in windows

Blog banner

Evolution of the Microprocesor

Blog banner

The New Classic: Indo Western Patola Outfits for Today’s Woman

Blog banner

CRISP-DM Methodology

Blog banner

Privacy LAWs in IT

Blog banner

Eating Well With Meal Maharaj on Busy Workdays Without Cooking

Blog banner

Apache Spark :- Powerful Data Processing Tool

Blog banner

How To Implement Search Engine Marketing (Sem) Strategy Effectively

Blog banner

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

Blog banner

Interrupts in operating system.

Blog banner

Memory hierarchy

Blog banner

CYBER SECURITY CHALLENGES

Blog banner

Disk cache

Blog banner

Linker

Blog banner

Whatsapp Messenger

Blog banner

Fitness

Blog banner

Cross site scripting Attack

Blog banner

A buffer overflow

Blog banner

Malware

Blog banner

Office Lunch Problems in Mumbai and How Tiffin Services Solve Them

Blog banner

Bitcoin sent using radio waves! No internet!

Blog banner

Embracing the power of Modern Machine UNIX

Blog banner

"The Benefits of Using GIS in Agriculture"

Blog banner

Worms, viruses and Bots

Blog banner

Junk food vs healthy food

Blog banner

Title: Modern Operating Systems: Powering the Digital Era

Blog banner

The Difference Between Plaque and Tartar Explained Simply

Blog banner

Importance of modern technology era

Blog banner

Service Transition Process in ITSM

Blog banner

Evolution of Operating System

Blog banner

Direct Memory Access

Blog banner

Pooja Silver

Blog banner