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

Malware Defense

Blog banner

LTE Technology

Blog banner

Facebook marketing

Blog banner

OPERATING SYSTEM

Blog banner

A Happier Workplace Starts with Healthy Lunches by Meal Maharaj

Blog banner

DMZ: Your Secret Weapon for Data Security

Blog banner

Toothache at night? What does this mean, and how to cope with it?

Blog banner

Deadlocks in Operating System

Blog banner

Digital Footprints An Emerging Dimension of Digital Inequality

Blog banner

1.1 basic elements

Blog banner

CYBERBULLYING: Negative comments!

Blog banner

Hacking

Blog banner

ODOO

Blog banner

Getting started with Android Studio

Blog banner

File management

Blog banner

Puri Jagannath temple

Blog banner

Web browser forensics:Tools,Evidence collection and analysis

Blog banner

Digital black market or dark net poses a national security threat?

Blog banner

Docker Framework

Blog banner

Python as a tool for data analysis

Blog banner

HubSpot

Blog banner

Study on cyber and network forensic in computer security management

Blog banner

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

Blog banner

IOT Hacking Techniques

Blog banner

Concurrency and Deadlocks

Blog banner

K-means use cases

Blog banner

Disk cache

Blog banner

Operating system and overviews

Blog banner

MOVEMBER

Blog banner

Clarizen

Blog banner

15 Websites that will make your life easier ...!!!

Blog banner

1.1 basic elements

Blog banner

What is Spyware? and examples of them.

Blog banner

Digital Marketing

Blog banner

BITCOIN WALLET

Blog banner

Risk mitigation and management

Blog banner

Question

Blog banner

Virtual machine

Blog banner

Password Generator - Lisp

Blog banner

Memory management

Blog banner

Safe Learning Spaces: Why Preschool Environment Matters More Than Ever Today

Blog banner

VIRTUAL MACHINES

Blog banner