Difference between C++, Java and Python


C++ Java Python
C++ is a compiled programming language Java is a both compiled and interpreted language Python is a interpreted language
C++ support limited number of library Java support many library concepts like UI Python support huge set of libraries that used for AI, Data Science etc.
Platform Dependent Platform Independent Platform Independent
Support multiple inheritance Instead of multiple inheritance support interface Support single and multiple inheritance
Strongly typed, need to define data type of variable Strongly typed, need to define data type of variable Dynmic, no need to define data type of variable
Define block of statement with curly braces and end statement with semicolon (;) Define block of statement with curly braces and end statement with semicolon (;) No need to define block of statement with curly braces and semicolon, it use indentation
Function and variable are used outside the class Function and variable are used inside the class Function and variable are used outside and inside the class

Comments

Popular Posts