aspose file tools*
The moose likes Beginning Java and the fly likes Pros and cons of java Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Pros and cons of java" Watch "Pros and cons of java" New topic
Author

Pros and cons of java

Dirk Trompetter
Greenhorn

Joined: Aug 21, 2001
Posts: 13
Does someone know a page about pros and cons of java?
just a summary.
thanks
[This message has been edited by Dirk Trompetter (edited September 18, 2001).]
Cindy Glass
"The Hood"
Sheriff

Joined: Sep 29, 2000
Posts: 8521
Pros:
It runs on any platform including my thermostat and cell phone.
It is object oriented - which needs a whole separate topic to define why THAT is the best way to go (extensibility and reusability etc.)
It is free.
It is easier to code than C++.
It is less prone to bugs that C++.
Cons:
It has a (very slightly) lower performance than C++.
Microsoft doesn't like it. (Or is that a Pro?)

"JavaRanch, where the deer and the Certified play" - David O'Meara
Dirk Trompetter
Greenhorn

Joined: Aug 21, 2001
Posts: 13
I can find many pros! But where are the cons? There's more to it than that. Come on
Mike Curwen
Ranch Hand

Joined: Feb 20, 2001
Posts: 3695

I came to Java from a MS/VB background, and the hardest thing for me to get used to was all the casting I needed to do.

For example, in Visual Basic, typing (not the kind on a keyboard) is much more loose. You can pull a value out of a collection-type object, and assign it to a typed variable, and the runtime will attempt the cast for you.
Another example is recordset/ResultSet. In VB it's rs.get("columnName") and you don't need a getter for every single possible return type. (ie: getString, getInt, etc...)

In Java, you need to do more manual casting, which can mean a lot more typing (the kind on the keyboard), and hey.. sometimes there are multiply-cascaded calls and a single line of code can become quite gruelling with all the casts in there, and I always end up leaving off a ( or ) somewhere.

But I'm pretty sure there's no 'die-hard' reason this makes Java 'bad'.

The other issue that comes to mind when I think of Java is: SLOOOOW. Sorry Cindy, but there are times when Java is not 'slightly' slower. You just cannot beat using C++ (or even VB) for speed when we're talking about GUI'd apps. AWT is not too bad, but looks like a Win16 app. Swing looks pretty good (in fact I like the Metal look, and not the 'windows' look), but it is still a little buggy and is much slower than a comparable VB/C++ app.

Using Java for cgi or parsing/munging of files... VERY fast, as good as anything I think. But it still chugs on the GUI side.
Cindy Glass
"The Hood"
Sheriff

Joined: Sep 29, 2000
Posts: 8521
Another Con is that if you need to do something lowlevel and operating system specific - you pretty much need to do it in C++ or whatever and use JNI to integrate it with your java app.
Tom Ben
Ranch Hand

Joined: Aug 17, 2001
Posts: 109
Mike,
I understand your side of the VB GUI and yes Java maybe slower but when was the last time you created a GUI enviroment on anything other than Windows with VB. For that fact when have you been able to just ftp your compiled VB code over to any other system and run it. Not downing VB so do not take this as a crack on VB. I do agree that Java does run slower and since I have been using a little C# I have found that it runs faster than anything I have used.
------------------
Sun Certified Programmer on the Java 2 Platform


Sun Certified Programmer on the Java 2 Platform
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Pros and cons of java
 
Similar Threads
java2WSDL and WDL2java
using java reflection
AJAX Frameworks that integrate with Struts
DAO to access to web service?
Anyone already uses Groovy