Differences Between C,C++,JAVA
Differences Between C,C++,JAVA
The programming languages C, C++, and Java are the most popular and widely used programming
languages in the market. In this section, we will discuss the differences between C, C++,
and Java. Apart from the similarities in syntax and that both are object-oriented, their design aim
and philosophy are different.
The best-known example of the operating system that was developed using C language is Unix and
Linux.
Features of C Language
o Case-sensitive
o Easily extendable
o Statically-typed
C++
o Case-sensitive
o Compiler based
o Platform-independent
o Portability
Java
Java is also an object-oriented, class-based, static, strong, robust, safe, and high-level programming
language. It was developed by James Gosling in 1995. It is bot compiled and interpreted. It is used to
develop enterprise, mobile, and web-based applications.
Features of Java
o Object-oriented
o Architecture-neutral
o Platform independent
o Robust
o Secure
o Multithreaded
The following figure demonstrates that C++ is based on the C language and Java is based on the C++
and C language.
The languages are based on each other but still, they are different in design and philosophy. The
following table describes the major differences between C, C++, and Java. It will help you to select
which language you have to learn.
3 Approach It uses the top-down It uses the bottom- It also uses the
approach. up approach. bottom-up approach.
10 Source File The source file has The source file has a The source file has
Extension a .c extension. .cpp extension. a .java extension.
12 Union and It supports union and It also supports It does not support
Structure structure data types. union and structure union and structure
Datatype data types. data types.
18 goto It supports the goto It also supports the It does not support
Statement statement. goto statement. the goto statements.