r/AskComputerScience 3d ago

C++ or Java?

Which programming language has the most return on investment? Impact on real world systems, and is more rewarding? I have minimal programming experience and working on AS in CS.

5 Upvotes

57 comments sorted by

View all comments

13

u/Relevant-Cut-884 3d ago

C++ is an excellent learning language , it has concepts you will not find in any programming language , like pointers , garbage collection and also it is the main competitive programming language for its speed

Java is also good though

The most important thing is to start learning

-8

u/Mission-Maize8454 3d ago

I just want to make the most money I can possibly make like 20 years from now.

18

u/saruko27 3d ago

Something tells me making the most possible money 20 years from now is not going to come down to which language you decide to learn today.

-8

u/Mission-Maize8454 3d ago

AI?

2

u/willbdb425 2d ago

No, because if you want to earn lots of money you'll need to learn many languages over your career so it doesn't matter what you'll pick first it won't be your last

5

u/Relevant-Cut-884 3d ago

It doesn't work that way I mean if you want to be rich by programming Then you ve to be clever , if you wanna be clever , so you will have to learn and study in the best way you can

The first phase for that goal is to learn fundamentals which is

A learning language

Practice on it

oop

Doing projects on it

DSA(data structures and algorithms)

Solving problems on it

So , i recommend doing c++ for this phase

0

u/Mission-Maize8454 3d ago

I'll take beginning C++ then , great advice btw.

1

u/Relevant-Cut-884 3d ago

You 're welcome , good luck <3

5

u/baddspellar Ph.D CS, CS Pro (20+) 3d ago

Good programmers are prepared to learn new programming languages throughout their careers

3

u/Weevulb 3d ago

Learn COBOL lol

2

u/I_so_I-274 3d ago

It's good to think about money specially long term and what to focus on depending on your taste however I personally wouldn't lead with that thought. People who think like that often get burnt out and doing something they don't even love doing for money.

There's plenty of ways to make money as well and other fields to look into if that's your only goal. If you get better and more experienced you'll make money regardless, networking and being an upstanding citizen probably will help you more as well.

Both languages make money, Java is more universal however experienced c++ devs deff have higher salaries to bargain with from what I've seen.

2

u/Mission-Maize8454 3d ago

Yeah getting burnt out is real when doing way too much.

2

u/Dornith 3d ago

No one knows what will make the most money 20 years from now. 20 years ago no one predicted graphics card engineers would be kings of the world.

Javascript was only invented 30 years ago and it runs the entire internet.

Also, as someone else pointed out, the language you choose to learn in high school/college is not going to chisel the next 20 years of your career into stone. You will almost certainly learn at least one more language just by proximity alone.

1

u/Putnam3145 3d ago

i got a job in C++ after having only used it fleetingly precisely once in 12 years of experience

1

u/green_meklar 3d ago

It doesn't look like there are going to be a lot of jobs of any kind 20 years from now. What kinds, we have no idea.

1

u/PlasmaFarmer 3d ago

If you are in it only for the money and you don't have any affinity/interest in IT, then don't. You will suffer doing something you hate and you will lose motivation and also won't be skilled enough to compete.