


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.
| Aspects | C | C++ | Java |
|---|---|---|---|
| Developed Year | 1972 | 1979 | 1991 |
| Developed By | Dennis Ritchie | Bjarne Stroustrup | James Gosling |
| Successor of | BCPL | C | C(Syntax) & C++ (Structure) |
| Paradigms | Procedural | Object Oriented | Object Oriented |
| Platform Dependency | Dependent | Dependent | Independent |
| Keywords | 32 | 63 | 50 defined (goto, const unusable) |
| Datatypes : union, structure | Supported | Supported | Not Supported |
| Pre-processor directives | Supported (#include, #define) | Supported (#include, #define) | Not Supported |
| Header files | Supported | Supported | Use Packages (import) |
| Inheritance | Not Supported | Supported | Multiple Inheritance not Supported |
| Overloading | Not Supported | Supported (Method & Operator) | Operator Overloading not Supported |
| Pointers | Supported | Supported | Not Supported |
| Code Translation | Compiled | Compiled | Interpreted |
| Storage Allocation | Uses malloc, calloc | Uses 'new' Keyword | uses garbage collector |
| Multi-threading and Interfaces | Not Supported | Not Supported | Supported |
| Exception Handling | Not Supported | Supported | Supported |
| Storage class: auto, extern | Supported | Supported | Not Supported |
| Destructors | No Constructor or Destructor | Supported | Not Supported |
| Database Connectivity | Not Supported | Supported but complicated | Supported |
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.