🌐
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.
Published   August 12, 2025
Discussions

Is programming in Python faster than in C, C++ or Java? - Software Engineering Stack Exchange
Syntactically, Python code looks like executable pseudo code. Program development using Python is 5-10 times faster than using C/C++, and 3-5 times faster than using Java. In many cases, a prototype of an application can be written in Python without writing any C/C++/Java code. 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 - Python excels in rapid development and ease of use, C++ shines in performance-critical applications and systems programming, while Java offers robustness and platform independence.
🌐
Python
python.org › doc › essays › comparisons
Comparing Python to Other Languages | Python.org
Python is often compared to other interpreted languages such as Java, JavaScript, Perl, Tcl, or Smalltalk. Comparisons to C++, Common Lisp and Scheme can also be enlightening. In this section I will briefly compare Python to each of these languages. These comparisons concentrate on 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 - Garbage Collection Tuning: Optimize JVM garbage collection settings to prevent application lag during peak traffic times. When evaluating java vs python, Python is known for its flexibility and ease of use.
Address   The Hive, Raja Bahadur Mill Rd, Beside Sheraton Grand Hotel, Sangamvadi, Pune, 411001
🌐
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 - As a result, it keeps bringing a lot of value to the field of software development. Python offers new libraries, quick prototyping, and other new capabilities while requiring less programming.
🌐
Medium
medium.com › swlh › a-performance-comparison-between-c-java-and-python-df3890545f6d
A Performance Comparison Between C, Java, and Python | by Gunavaran Brihadiswaran | The Startup | Medium
July 24, 2020 - A Performance Comparison Between C, Java, and Python This is what happened when I ran matrix multiplication in all three languages I have been doing a lot of implementations in C language for my …
Find elsewhere
🌐
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 - Its code doesn’t rely on any underlying architecture, which has no doubt contributed a great deal to Java’s flexibility and extensibility. Like Python, Java is object-oriented, which can make writing maintainable code much easier.
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.

🌐
Imaginary Cloud
imaginarycloud.com › blog › python-vs-java
Python vs Java: Key Differences, Performance, and Use Cases
2 weeks ago - Choose Python for faster development, simpler syntax, and use cases like AI, data science, and prototyping. Choose Java for scalability, performance, and large enterprise systems with complex architectures.
🌐
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 - Software Development: To simplify the software development process of complex applications, python is widely used by software developers. With Java, you can write once and run your code anywhere because of a platform-independent programming language.
🌐
Be A Python Dev
beapython.dev › 2019 › 07 › 26 › a-coders-toolbelt-python-vs-java-vs-c-vs-javascript
Differences Between Modern Coding Languages: Python vs Java vs C++ vs Javascript – Be A Python Dev
October 4, 2020 - Have you ever asked yourself should I learn Python or Java. Is C++ better then Python. Am I more likely to get a job if I learn javascript then if I learn python. In this article I'll explain the differences between the modern coding languages and the types of enterprise applications these ...
🌐
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 things like A.I some 2d game development works on robots. c# is just for Windows device development it runs on the .Net framework it's basically Java just for Windows c++ is King when it come to programming but it is very hard to learn and requires you to write longer lines and to get something done that python could do in five.
🌐
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.
🌐
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.
🌐
Sololearn
sololearn.com › en › Discuss › 1494680 › what-are-the-main-differences-between-c-java-and-python
What are the main differences between C++, Java and Python? | Sololearn: Learn to code for FREE!
Well java is an OOP language everything has to reside within a class even to run a simple program, python and cpp are procedural based languages which can utilize OOP concepts, cpp is able to directly interact with computer components and memory ...
🌐
Onlineitguru
onlineitguru.com › blog › which-one-should-you-use-c-plus-plus-java-or-python
Which One Should You Use: C++, Java, or Python? | Online IT Guru
April 7, 2022 - How does python interact wi... What is Java Content Reposi... ... How iOT become a part of iO... Explain about APIs and it's... How Oracle SOA came into th... ... What are the glittering fea... What are the Best Java Fram... Importance of ITIL in servi... Role of Cucumber in Ruby on... Tips to become master in JA... The life cycle of Dot net A... Java Vs C#: Which One is th...