🌐
Reddit
reddit.com › r/learnprogramming › java vs python vs c++
r/learnprogramming on Reddit: Java vs python vs C++
May 23, 2023 -

Hey y'all, I'll be needing to choose either one of Java, python, c++ or web programming for my second semester in electronics and communications but i have no idea where to start from

I've learnt all the basics of c programming in my first semester and i have to choose between the above mentioned for the second semester and it's really rattling my brain

Which of them would be better for a beginner to programming language and which would be most helpful in the future, if you'd have to say?

Thanks in advance!

Top answer
1 of 5
264
All of those languages are useful in different situations. Python's very popular with scientists, ML engineers, and the like. Non-programmers who need to write programs love it because it's approachable and has a plugin for basically anything. It's my favorite language for writing tiny, one-off programs and doing hackathons and coding competitions and stuff. Java's the workhorse of the corporate world. If you're writing a giant application full of business logic for a big corporation, and you're gonna maintain it for two decades, Java's still the default choice. C++ is the most powerful option. If you need something to go as fast as it can go, C++ is your default choice. But whole types of bugs around stuff like memory that are basically impossible to cause in Python or Java are really easy to cause in C++, and its error messages aren't so much legible as they arSegmentation Fault (core dumped). You can go far with any of them, and there's a good chance you'll end up learning all three at some point.
2 of 5
88
Love Python, but I’m in the “it’s better as your 2nd/3rd language” camp. The others are ‘harder’ and force you to gain a deeper understanding. Then you can pickup Python super easy. “Oh hey, it basically works the same but just does all the fiddly bits for me”. But you would know what those fiddly bits are, and can check the docs and be certain that behind the curtain it really is doing what you think it is. People who do it the other way around seem to have it harder, they don’t know how much Python is doing for them, why, or that it even is.
🌐
GeeksforGeeks
geeksforgeeks.org › java › c-vs-java-vs-python
C vs C++ vs Java vs Python vs JavaScript - GeeksforGeeks
Java – Compiled to bytecode, runs on JVM (interpreted/JIT-compiled). Platform-independent, strongly typed, with automatic garbage collection. Popular for enterprise android and backend systems. Python – Dynamically typed, typically first compiled and then interpreted via bytecode execution.
Published   August 12, 2025
Discussions

Is programming in Python faster than in C, C++ or Java? - Software Engineering Stack Exchange
There's a widespread belief among programmers that the more dynamic and loosely typed the language, the more productive the programmer will be in it. Guido van Rossum wrote about programming produc... More on softwareengineering.stackexchange.com
🌐 softwareengineering.stackexchange.com
Should I learn C, Java or Python?
Python might be the easiest to start with. And it is quite useful under Linux to automate certain things for example. More on reddit.com
🌐 r/linuxquestions
13
0
January 26, 2022
What Programming language and why? C, C++, Python, C#, Java, etc
Since you have used MATLAB and R, I would suggest Python. Python has data visualization libraries, numerical libraries, etc. So if your background is more into data related stuff, Python has stuff aimed at that community (why Python was picked is unclear, because it could have been Ruby). But Python can be used to make web applications, games (maybe not like C# or C++). It has object oriented features, etc. The main complaint is that it's slow compared, say, C++. Try not to pigeonhole languages for one purpose. C# was developed because Microsoft was told to stop their work on Java, so they built a Java clone. They didn't think "Oh, this is just like Java, so we shouldn't bother creating this language". People often write languages because this feature or that feature annoys them, and they want to "fix" it with something better. Arguably, Java was created because people thought C++ was too complex and that maybe it was time for a non-functional programming language to use a garbage collector. They went through features they felt were creating complications in C++ (multiple inheritance, pass-by-value, memory allocation, etc) and cleaned it up (although Java is a pretty verbose language). It's just like if you wanted to buy a Honda vs a Toyota. These car manufacturers don't decide to create vehicles that fulfill a niche. To some extent, that can be true of languages. Even the idea of a programmer sitting down to do a project and "picking an appropriate" language doesn't always happen. If your group is good with Python, then they might not bother with doing the code in Java or C++. With whatever limitations a language has, familiarity with how it works is often more important. Also, although people love languages, there's more to programming than learning a language. More on reddit.com
🌐 r/learnprogramming
10
1
May 5, 2021
Differences in speed between C, C++, Python and Java
Java is not faster, just the compiler is smarter. If your code looks something like: var i = 0 while i < 10_000_000_000: i += 1 print(i) It should get optimized to something like: print(10_000_000_000) at least a proper C++ compiler with release settings should do it too, if i remember correct it's called loop unrolling More on reddit.com
🌐 r/godot
12
0
December 13, 2023
🌐
Quora
code.quora.com › Which-language-is-best-C-C-Java-or-Python
Which language is best, C++, C#, Java, or Python? - Code - Quora
Python for when you need to do something quickly, and C# for when you need better performance. They are both very easy. C# is slightly more difficult, but it is worth it. As a beginner, I guess it would be better to stay away from C , C++ and Java.
🌐
Medium
abhinnpandey.medium.com › python-vs-c-vs-java-choosing-the-right-language-for-your-project-31947682a1fd
Python vs. C++ vs. Java: Choosing the Right Language for Your Project | by Abhinn Pandey | Medium
June 19, 2023 - Hardware Interaction: C++ is well-suited for systems programming and embedded systems, allowing direct interaction with hardware components. Complexity: C++ has a steeper learning curve compared to Python and Java due to its low-level features ...
🌐
Career Karma
careerkarma.com › blog › tech guides › python vs. java vs. c++
Python vs. C++ vs Java: Everything You Need to Know | Career Karma
October 29, 2022 - Perhaps the single biggest drawback to using C++ is that it isn’t as portable as Python or Java. Code written in C++ has to be re-compiled for every platform it’s deployed on, making it harder to write truly adaptive applications. As a mid-level language, however, C++ has many libraries for more directly handling hardware-level tasks. This means that, depending on the specifics of your project, it could be much better for anything that requires a high degree of hardware optimization, like graphics programming.
🌐
Python
python.org › doc › essays › comparisons
Comparing Python to Other Languages | Python.org
Java, on the other hand, can perform an efficient integer or floating point addition, but requires variable declarations for a and b, and does not allow overloading of the + operator for instances of user-defined classes. For these reasons, Python is much better suited as a "glue" language, while Java is better characterized as a low-level implementation language.
🌐
ClarionTech
clariontech.com › blog › java-vs.-python-vs.-c
Java vs C vs Python for App Development: A Guide for CTO
December 6, 2024 - While it is frequently derided as being less performant when it comes to CPU-heavy workloads than Java or C#, it is a fantastic language for prototyping and scalable python app development in and cloud-native applications with rapid turnaround times.
Address   The Hive, Raja Bahadur Mill Rd, Beside Sheraton Grand Hotel, Sangamvadi, Pune, 411001
Find elsewhere
Top answer
1 of 5
19

Ousterhout's article1 about scripting languages suggests that the higher level the programming takes place, the more productive the programmer is. If we take that, as Boehm says2, the number of lines a programmer can write in a given time is constant and not dependent on the language or its type (low level, system programming, scripting), one can easily believe the claim. The resulting instructions-per-source-code-line -ratio can be an order of magnitude (or several) better with scripting languages than with system programming languages.

As scripting languages heavily rely on ready-made utilities for common tasks (e.g. data structures, string manipulation), their main use usually is to enhance productivity with the cost of slower running speed by providing a syntax that's easy to learn and efficient to upkeep programs with. One doesn't resort to a scripting language when top execution speed is needed.

[1]: J. K. Ousterhout, Scripting: Higher Level Programming for the 21 Century, Computer (IEEE), 1998
[2]: B. Boehm, Software Engineering Economics, Prentice Hall, 1981

2 of 5
8

If you measure productivity as "time to write a specific simple program" then it depends so much more on programmer experience and quick mind than the language that you are really evaluating the programmer, not the language.

I believe timed code contests indicate that the language doesn't really matter for those kinds of tasks. There is no one language that wins such challenges easier than others (at least not if you allow for the relative popularity of languages).

If you measure performance as "the effectiveness of the best program" written in a given language, then it's even less language-dependent. See for example the results of the Galcon AI contest. The winner is written in Lisp. The next Lisp entry, however, is ranked #280. What does this tell us about the language's suitability for writing great AI efficiently? In my opinion, nothing. It just tells us that "bocsimacko" came up with and implemented the most effective algorithms. For the record, time was not a major factor in this contest - people had more than two months to develop their code.

Lastly, if you measure performance as "long-term cost of maintaining a project" then I think you're onto something. Especially if you hire only the best people for the job, and count cost in man-hours rather than dollars. I have a strong opinion on which languages are best for this, but having no hard evidence to link you to I'll leave this opinion out. Perhaps someone else has links for this type of performance.

🌐
Javatpoint
javatpoint.com › c-vs-cpp-vs-python-vs-java
C vs C++ vs Python vs Java - Javatpoint
C vs C++ vs Python vs Java with Python with python, tutorial, tkinter, button, overview, canvas, frame, environment set-up, first python program, operators, etc.
🌐
Sololearn
sololearn.com › en › Discuss › 600703 › which-is-better-cc-or-python-or-java
Which is better c/c++ or python or java | Sololearn: Learn to code for FREE!
c++ is fast and can use many opportunities of the OS (operating system), but it's hard to learn and platform dependent. Java is rather slow, but easy to learn and platform independent.
🌐
Codetrade
codetrade.io › home › python vs. java vs. c++: key differences with real-world examples
Python vs. Java vs. C++:Key Differences With Real-Time Examples
February 16, 2024 - It is recognized for its efficient ability to compile native code and is employed in the development of operating systems, applications, device drivers, embedded software, high-performance server, and client applications. C++ programming language has a significant impact on other popular languages, particularly c#, and java. Python can perform complex tasks using a few lines of code because of expressive language.
🌐
Quora
quora.com › C-vs-Java-vs-Python-who-will-win-64
C++ vs Java vs Python: who will win? - Quora
So it goes like:C++>Java>Python.C++ is preferred for Kernel level Programming.One last thing i would like to add here is,for more complex codes sometimes the performance of C++ worsens if u add some piece of code to free up the memory that was ...
🌐
PW Skills
pwskills.com › blog › dsa › java vs c++ vs python
Java Vs C++ VS Python
November 4, 2025 - Java is a platform-independent language, whereas C++ is a very fast and compiled language, and Python is easy to learn due to the extensive support of modules and libraries it provides.
🌐
Codingal
codingal.com › coding-for-kids › blog › what-is-the-difference-between-java-python-and-c
What is the difference between Java, Python and C++ | Codingal
February 3, 2025 - Java is quicker at runtime and simpler to debug because to this one distinction, while Python is simpler to use and understand. Python’s popularity has grown mainly due to its communicative nature; people understand it better.
🌐
Sololearn
sololearn.com › en › Discuss › 253502 › c-vs-java-vs-python-who-wins-
C++ vs Java vs Python who wins? 💪💪 | Sololearn: Learn to code for FREE!
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.
🌐
Sololearn
sololearn.com › en › Discuss › 1440998 › python-c-sharp-c-or-java-
Python, c sharp, c++ or Java ?? | Sololearn: Learn to code for FREE!
Ok Python is for A lot of different ... lines and to get something done that python could do in five. But I believe python is the better choice because it's easy to read and has a lot of uses....
🌐
Lasting Dynamics
lastingdynamics.com › home › build a software › python vs java, c++ & more: ultimate showdown in 2025-2026
Python VS Java, C++ & More: Ultimate Showdown in 2025-2026
1 month ago - Python is an interpreted, high-level ... optimized for performance and system-level programming. Choose Python for rapid prototyping, data science, AI, and automation. Java and C# are better suited for enterprise-scale, ...
🌐
Quora
quora.com › Which-language-is-best-C-C++-Python-or-Java
Which language is best, C, C++, Python or Java? - Quora
Answer (1 of 92): What is C++? C++ is a computer programming language that contains the feature of C programming language as well as Simula67( a first object Oriented language). C++ introduced the concept of Class and Objects. If you’re an aspiring programmer, it can be hard to choose where to ...
🌐
Quora
quora.com › What-is-the-difference-between-Python-C-and-Java-in-terms-of-programming-performance-intensive-applications
What is the difference between Python, C, and Java in terms of programming performance-intensive applications? - Quora
Python and Java differ in terms of performance because Python utilizes a dynamically-typed syntax, whereas Java uses a static grammar that simplifies code compilation. Therefore, Java is less likely to introduce errors.