kimchi_sg wrote:
It has been around longer
Then why not COBOL?
kimchi_sg wrote:
and compiles on more platforms than Java.
Yes, a
small subset of C++
The biggest points in favor of Java over C++ I see are typesafety and array-range-checking. 50% of all secrurity holes are buffer overflows. This meas there is an immense amount of people out there using C/C++ without understanding it, changes are you won't understand it as well. Bufferoverflows are a big problem. Java programms can not be affected by them. How many C/C++ programms or libs do you know of that have never been affected by a buffer overlfow? If you think this is a minority the you probably don't read "Latest Site News", at the time of posting:
Latest Site News wrote:Python: Heap overflow in the included PCRE library
X.Org: Heap overflow in pixmap allocation
Such a thing would just not be possible with Java.
And there is of course my favorite quote about C++
Tom Cargill wrote:
If you think C++ is not overly complicated, just what is a protected abstract virtual base pure virtual private destructor and when was the last time you needed one?
danmitchell wrote:
C++ doesn't require manual memory management
Yeah, sure.
Don't get me wrong, I'm no Java fanboy. I'd recommand Smalltalk, Python or even Ruby over Java. But if the choice is Java or C++, I go Java. But I'd actually say Java is proven. In the last 10 years it has cut so significately into the market share of C/C++ like no other programming language.