Can someone please help me out? What are the pros and cons of C++ and Java? I've always been told that C++ is the ultimate programming language. It's powerful, fast, and used to run huge programs. But since Java is a close rival to C++, I was wondering what are some of the things that make C++ better than Java, and some of the things that make Java better than C++. Thanks in advance. =)

There are literally thousand of discussions on this to be found: http://www.google.com/search?sourceid=mozclient&ie=utf-8&oe=utf-8&q=c%2B%2B+vs+java

The objectivity of the comparisons vary greatly from side-by-side feature listings to all-out religious flamewars. The truth can be found somewhere in between. The wiki entry on it is probably a decent starting point to wade in: http://en.wikipedia.org/wiki/Comparison_of_Java_and_C%2B%2B

C++ is higher-level than Java, in that it has a more flexible type system and can make abstractions that Java cannot. On the other hand, Java has garbage collection.

The truth is, Java sucks, horribly. Java is pretty much as crappy as a language can be. But it has garbage collection, which makes it better than C++, but much worse than pretty much every other language. Scala, a language that compiles to the JVM, is indisputably better than Java.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.