+ 6
C++ vs Java vs Python who wins? ๐ช๐ช
I would Love to hear your thoughts ๐๐
10 Answers
+ 26
Each will win on various aspects. Three of them have their own pros and cons.
Speed of Execution ๐ ๐ ๐
Pythonโs execution speed is slower compared to Java and C++. Being dynamic and interpreted language, Python execution is slower. In comparison between Java and C++, execution speed of C++ is faster than Java.
Winner: C++
Memory usage ๐ ๐ ๐
In this case Java uses more memory compared to Python and C++. Python has decent memory consumption, C++ is more memory efficient.
Winner: C++
Number of Lines โ โ โ
More number of lines in code is hard to maintain. Both C++ and Java source codes will be more number of lines. Python will reduce the lines even for complex algorithms.
Winner: Python
Easy to learn ๐ ๐ ๐
There is no doubt, Python is lot easier to learn as a beginner programming language. Core concepts of Java is easier to learn. C++ little hard to learn compared to Java and Python.
Winner: Python
Scalable ๐จโ๐ฉโ๐งโ๐ฆ ๐จโ๐ฉโ๐งโ๐ฆ ๐จโ๐ฉโ๐งโ๐ฆ
Three languages are more scalable. Java applications are more scalable.
Winner: Java
Cross-Platform ๐จโโคโ๐โ๐จ ๐ ๐
C++ source code will be compiled to native code. So, executables of C++ is not platform independent. Now the days C++ compilers are more cross-platform. In the case of Java and Python, both are cross-platform, available for all major operating systems.
Winner: Java and Python
Mobile applications ๐ฑ๐ฑ๐ฑ
Three are using for mobile applications, dominance of Android Java is mostly using for mobile applications development.
Winner: Java
Data science๐ฅ๐ฅ๐ฅ๐ฅ๐น๐น๐น
In data science Python is mostly used language. Because Python is not verbose, even non-computer professionals can learn Python easily. Python has lot of scientific computing libraries.
Winner: Python
Job Opportunities๐ญ๐ก๐ฌ๐ฝ๐๐ฐ
Three languages have good job opportunities.
Winner: Java, C++ and Python๐ฒ๐ฑ๐ฐ๐น๐ฐ๐
+ 15
Although the thread itself is a typical language vs language post, the answer provided is concise, simple and beneficial to other learners.
+ 13
i think cpp
+ 12
as c is the advanced version of mother language and to learn any c is required as it is the base of every language and this other languages are also made in c
+ 5
both Will win in each domain and it's not the easiness to be learned that Will judge that because programming,entirely is not easy for all .
that'sโ to say each of the programming languages have their own speciality.
whereas we got the possibility to match them together in some case(cause of their own utilities)๐๐
+ 2
In the same way u did urs @satyendra ๐
+ 2
Akash great explanation.
+ 1
๐
+ 1
Thanks @HatsyRei