+ 5
What are the usage differences of C++ and Java? Can they both be used for all of the same things?
I've been learning C++ but I've heard that Java is more versatile, and I've also seen Java experience requested much more in job postings than C++. Should I be learning that instead?
11 Answers
+ 11
C++ has more speed but your code must be developed compatible to hardware and os system => more development resources will be needed.
Java code is universal and works independed to os and hardware but is not for aplications where will be needed huge speed.
Nowadays, different languages are used for different applications.
But I would prefer to learn one first at a very good level and with a lot of practical projects. Java is one of the most used programming languages more than c++.
+ 5
Thank you all for the resources! This helps a ton! I'll be taking a closer look at these so that I can get a better idea of what suits me best.
+ 4
I see, that's why I see Java in a lot of job postings. Thank you!
+ 4
Both are general purpose languages, so you can do a lot of things with either of them. Which one is the better choice for you depends on a lot of things, e.g. what exactly you want to do. You can find a ton of articles comparing the two.
Here's some general advice on how to choose a programming language:
https://code.sololearn.com/WWE2eu548roL/?ref=app
+ 3
Paul of course there are more choices, but the question here was specific to the two languages.
+ 1
Why not golang?
+ 1
Paul why not use common sense before posting an irrelevant "answer"? Some things are just a mystery.
+ 1
I think it is a good question Simon. Why choose one out of two when there are three to choose from.
+ 1
JaScript I don't think java is more used language than c++ since some JVMs are written in c++.
so basically a java code is using c++ code to run.
C and C++ underlies nearly all modern software and programming languages today.
Many programming languages such as Python and Ruby and others are just scripting languages, really, calling C and C++ libraries under the hood.
C, C++ is like nuts and bolts for most of the software programs in existence today, and therefore are technically the most used languages.