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

The Role of Cyber Forensics in Criminology

Blog banner

Direct Memory Access

Blog banner

De-Coding Love

Blog banner

E-Governance

Blog banner

Dekkers Algorithm

Blog banner

Mariana Trench: The deepest depths

Blog banner

Fitness

Blog banner

File System

Blog banner

E-mail security

Blog banner

Travel: Everything Everywhere!

Blog banner

Deadlock

Blog banner

RAID_142

Blog banner

Senseless Teeths

Blog banner

Mobile Security

Blog banner

Health and fitness in technology

Blog banner

Webmail

Blog banner

Hacking Mobile Platforms

Blog banner

Veg/Non-veg/Egg Tiffin Meals That Are Nutritious and Filling

Blog banner

Session Hijacking

Blog banner

OLA

Blog banner

Why You Should Not Use Free VPNs

Blog banner

Blog on Smartsheet.

Blog banner

IT Service Continuity Management

Blog banner

Personalized Movie Recommendations with Data Science

Blog banner

SQL Injection Techniques

Blog banner

Memory Management

Blog banner

Blockchain in IoT Applications

Blog banner

Process, process creation and process termination

Blog banner

IT security management

Blog banner

Device driver

Blog banner

“Shot on iPhone” : A campaign by Apple that turned into a prodigy

Blog banner

Music helps reduce stress

Blog banner

indian premier league

Blog banner

Dr. Venkadavarahan

Blog banner

Why Progressive Web Apps (PWAs) Are Replacing Traditional Websites

Blog banner

Data Science in Everyday Life (like a phone, shopping cart, or social media icons)

Blog banner

Segmentation and paging concept

Blog banner

Not anti-social, but pro-solitude

Blog banner

Friendship

Blog banner

Secure Hypertext transfer protocol

Blog banner

Man In The Middle Attack

Blog banner

Os assignment

Blog banner