This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Java - the right tool for the job?

 
Bryan Cairns
Greenhorn
Posts: 10
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello everyone,

I have been flirting with Java for a few months now. I am an old VB / C# / Delphi programmer and have been wanting to branch out to other operating systems for a while.

After doing some research the more obvious choices are C++ (with QT or xWidgets) or Java.

I tend to do a little bit of everything, from desktop applications to TCP servers, to web services, to Database clients.

In the past I have done some limited programming in both Java and C++, so it is pretty hard for me to choose when I am by no means an expert in the languages or their differences.

Every language is just a tool, each one has strong points and weak points. Just wondering if you guys can fill me in on some of Java's strong and weak spots?
 
fred rosenberger
lowercase baba
Bartender
Pie
Posts: 12017
24
Chrome Java Linux
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
one of java's strengths is the 'write once, run anywhere' philosophy, which should probably be "compile once, run anywhere".

With C/C++, you must re-compile your code for each platform you want to run it on, and make sure you send the right .exe for the right system.

with java, you can send the EXACT same source files to everyone, and regardless of their platform/version, it will run (assuming there is a jvm for that platform).

Now, of course it is possible to write code that won't be portable, but why would you do that?
 
Patrick Loz
Greenhorn
Posts: 5
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I would just add that I considered wxWidgets for quite some time as I came from C/C++. However, I find that the support base for Java to be infinite in comparison to wxWidgets and QT combined. There's a tremendous amount of flexibility in developing a wide range of applications using Java that I couldn't find in wx and Qt. But what finally put the change in my thinking was my company providing me with a free voucher to take a Sun exam, thus Java it is. I also weighed the options of either .Net or Java and ended up choosing Java in the end because I value things that are free.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic