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

Java .... practically for what?

Rohit Prakash Khare
Greenhorn

Joined: Jun 09, 2002
Posts: 6
I know that Java is an internet language. But can it be used to write standalone programs like C/C++? What are the advantages of Java over C/C++? Is it suitable to write enterprise level standalone database applications or only for Web databases?


"As long as there are tests, there will be prayer in public <br />schools."
Marilyn de Queiroz
Sheriff

Joined: Jul 22, 2000
Posts: 9053
    
  12
Originally posted by Rohit Prakash Khare:
I know that Java is an internet language. But can it be used to write standalone programs like C/C++?


Yes, absolutely, you can write standalone applications in Java.

What are the advantages of Java over C/C++?

a) safety in your code, less chance of error from using pointer arithmetic
b) not limited to one platform -- write once run anywhere (with a few limitations) -- Windows, DOS, MacIntosh, Linux, etc.

Is it suitable to write enterprise level standalone database applications ...?

Yes.


JavaBeginnersFaq
"Yesterday is history, tomorrow is a mystery, and today is a gift; that's why they call it the present." Eleanor Roosevelt
Brian Pipa
Ranch Hand

Joined: Sep 29, 2003
Posts: 299
For some good examples of standalone Java apps, see
Sun's Swing Sightings:
http://java.sun.com/products/jfc/tsc/sightings/S19.html
and to see the index of all the Swing sightings, go here:
http://java.sun.com/products/jfc/tsc/sightings

Brian


My Java Freeware:<br />MACCC - <a href="http://maccc.pipasoft.com" target="_blank" rel="nofollow">http://maccc.pipasoft.com</a><br />Nator - <a href="http://nator.pipasoft.com" target="_blank" rel="nofollow">http://nator.pipasoft.com</a>
Dale DeMott
Ranch Hand

Joined: Nov 02, 2000
Posts: 515
Eclipse is written in Java I believe using SWT. That is a great standalone program.


By failing to prepare, you are preparing to fail.<br />Benjamin Franklin (1706 - 1790)
John Smith
Ranch Hand

Joined: Oct 08, 2001
Posts: 2937
Is it suitable to write enterprise level standalone database applications or only for Web databases?
Java is suitable for almost anything. Here is a good example, -- Java Runs Spirit Rover on Mars
Randall Twede
Ranch Hand

Joined: Oct 21, 2000
Posts: 4347
    
    2

Java's only possible weakness in this regard, compared to C++, is execution speed.


SCJP
Visit my download page
Ruben Steins
Greenhorn

Joined: Nov 22, 2002
Posts: 15

A good (and long) report about the speed issue:
Evaluating Java for Game Development
There is even a quote in it from John Carmack (ID Software) which says a lot about the usability of Java for commercial apps:
"We are still working with significant chunks of an existing code base. If I did want to go off and start fresh, I would likely try doing almost everything in Java."
fred rosenberger
lowercase baba
Bartender

Joined: Oct 02, 2003
Posts: 11499
    
  16

My company develops a set of client and server apps. They were all written in C. We now support something like 20 flavors of various Operating Systems... Windows, Mac, Sun, etc. Oh, and we support 2 generations back.
it's very difficult to check in a bug fix to 20 versions x 3 generations.
we are now developing a Java client that will run against on all these OS. One code base that does everything.
someday, we'll re-write the servers too (if we can get enough staff). And these products have nothing to do with the Web. They're basically a kind of inventory management system.


There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Java .... practically for what?