top of page

Difference between C++, Java and Python.

C++


C++ is a general purpose programming language and widely used now a days for competitive programming. It has imperative, object-oriented and generic programming features. C++ runs on lots of platform like Windows, Linux, Unix, Mac etc.



Java

Java is a programming language and a platform. Java is a high level, robust, object-oriented and secure programming language.




Python


Python is a general-purpose interpreted, interactive, object-oriented, and high-level programming language. It was created by Guido van Rossum during 1985- 1990. Like Perl, Python source code is also available under the GNU General Public License (GPL). This tutorial gives enough understanding on Python programming language.




C++ vs Java vs Python


C++ Java Python


Compiled Programming Compiled Programming Language Interpreted Programming

language Language


Supports Operator Does not support Operator Supports Operator overloading Overloading overloading


Provide both single and Provide partial multiple inheritance Provide both single multiple inheritance using interfaces and multiple inheritance


Platform dependent Platform Independent Platform Independent


Does Not support threads Has in build multithreading support Supports multithreading


Has limited number of Has library support for many Has a huge set of

library support concepts like UI libraries that make it fit for AI,

datascience, etc.


Code length is a bit lesser, .Java has quite huge code. Smaller code length, 3-4

1.5 times less that java times less than java.


Functions and variables are Every bit of code is inside a class. Functions and variables can

used outside the class be declared and used outside

the class also.


C++ program is a fast .Java Program compiler a bit Due to the use of

compiling programming slower than C++ interpreter execution is

language slower.


Strictly uses syntax norms Strictly uses syntax norms Use of ; is not compulsory.

like ; and {}. like punctuations , ; .





Source: TutorialPoint


The Tech Platform

0 comments
bottom of page