Thread: c++ vs. java
View Single Post
Old Jan 15th, 2008, 4:09 AM   #10
Salem
Programmer
 
Join Date: Nov 2007
Posts: 33
Rep Power: 0 Salem is on a distinguished road
Re: c++ vs. java

> But are there any advantages c++ has over java?
Why did you choose the C++ forum to ask this on, as opposed to the Java forum?
It seems to me that you've already selected the answer you want, and are just looking for additional confirmation of your choice from others who are bound to say "x is better than y".

> but being c++ is quite a bit older is it worth learning or will it be out of date in a couple years?
You can predict with a very good probability how long something will last, simply from knowing how old it is (would you bet the pyramids in Egypt will be destroyed in your lifetime?). How many "it's the best thing" languages have appeared and sank without a trace since say Fortran and COBOL emerged.

C++ certainly isn't going to vanish in a couple of years, and will certainly manage a good chunk of your career.

You may as well learn both, so the only real choice is which one you learn first. As Narue hinted, languages are just tools to get things done. Part of being a good developer is knowing which tool(s) to use for the job.

Knowing only one language is like being a carpenter with only a hammer. Sure you can shape wood, but it ain't a pretty sight.
__________________
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
Salem is offline   Reply With Quote