This week's book giveaway is in the Jython/Python forum.
We're giving away four copies of Murach's Python Programming and have Michael Urban and Joel Murach on-line!
See this thread for details.
Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

the comparison between java and c++  RSS feed

Simon Sun
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This question I am thinking about for a quite while.
I use java for a while and c++ as well.
Regarding OOP, I prefer java, its concept is so clear and
easily understandable. With respect to the performance,
I prefer C++. Even I am much more familiar with java, and
preparing for SCJP2 exam. And the job market of java seems
more bright. The merging of C# would give java a threaning?
Some one can give me a clue.
I really dislike the applet performance. Every time, I open
the web page with applet, it costs a lot of time. I am using
cable, I still wait for a long time. I can't image users using
dial-up painness.
I think java has portable advantage. No one can beat it.
Ajith Kallambella
Posts: 5782
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Just a few thoughts -
Eventhough C++ peforms better than Java, the benefits of using Java are hardly limited to performance issues. Java is more robust( remember dangling pointers of C++?) and more than anything portable. You are only comparing the language aspects of Java with C++. Why not consider Java as a Platform?? If you think about it, it is far more advanced than C++ because it provides its own little "OS" for the applications, the VM.
Please see a related discussion here .

Ajith Kallambella M.
Sun Certified Programmer for the Java2 Platform.
Marius Holm
Ranch Hand
Posts: 84
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Simon.
It's true what you say about performance, but this issue is getting less and less significant over time. At any rate, Java has so many advantages that performance in most cases (apart from games) is less important.
I think C# will be as much of a threat to Java as Visual Basic is. As far as I can see from MS documentation, they are the same language, or to be more precise, they produce the same code. It seems that MS Visual Studio now is one code generator, but you can choose the langauage interface. (If you like VB, go ahead and code in VB, if you like C, use C, and so one). The output is anyway Windows-dependent, but that is of course a big market...
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!