Article View: borland.public.jbuilder.java.language
Article #14913Re: Why Use Java ?
From: Tom Davies
Date: Wed, 28 Jul 1999 00:00
Date: Wed, 28 Jul 1999 00:00
41 lines
2076 bytes
2076 bytes
John MacDonald wrote: > > >Java is a more productive language than C++ -- garbage collection means > >that you spend much less time searching for memory leaks and prematurely > >freed objects. > > Is the garbage collection stable and without problems? I haven't had problems traceable to this, but I can't speak for JVMs in general. > >Java is more maintainable because it is simpler -- no operator > >overloading, no copy constructors etc. I'd claim that you can't write > >good C++ without knowing Scott Meyers' books, but most of the traps he > >points out can't get you in Java. > > Operator overloading is a key benefit to OOP, I suppose in Clipper we didn't > have it either, but, in C++ it has turned out to be a good thing. Operator overloading is just syntactic sugar. IMHO there is nothing significantly better about: String operator+(String s) compared to: String append(String s) And operator overloading often makes C++ harder to read. > >Java is cross-platform -- i.e. any Java application will run on any > >platform a JVM is available for. Yes, C++ compilers are available for > >many platforms, but each one has a different API for the user interface > > How is it for interfacing equipment to the computer? There is a standard API for accessing serial ports (I haven't used it) and you can call native code, but I wouldn't use Java to write a device driver (I would think twice about using C++ too). Tom
Technical Details
Message-ID:
<379F648B.82777D07@smartchat.net.au>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<7niuop$3lo11@forums.borland.com> <379E4CD9.BD4201BA@smartchat.net.au> <7nlcnj$64a19@forums.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,eea5675e640b371d X-Google-Attributes: gidf74b3,public From: Tom Davies <tom@smartchat.net.au> Subject: Re: Why Use Java ? Date: 1999/07/28 Message-ID: <379F648B.82777D07@smartchat.net.au> X-Deja-AN: 506130548 Content-Transfer-Encoding: 7bit References: <7niuop$3lo11@forums.borland.com> <379E4CD9.BD4201BA@smartchat.net.au> <7nlcnj$64a19@forums.borland.com> Organization: Another Netscape Collabra Server User Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 Newsgroups: borland.public.jbuilder.java.language