Re: Newbie question - Disadvantages of java
From: Thomas Gagné (tgagne_at_wide-open-west.com)
Date: 10/26/03
- Next message: Cory: "Re: How do I add datum to System.in from my program?"
- Previous message: Dobromir Gaydarov: "Re: PortableRemoteObject.narrow() purpose?"
- In reply to: Thomas G. Marshall: "Re: Newbie question - Disadvantages of java"
- Next in thread: Sudsy: "Re: Newbie question - Disadvantages of java"
- Reply: Sudsy: "Re: Newbie question - Disadvantages of java"
- Reply: Thomas G. Marshall: "Re: Newbie question - Disadvantages of java"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sat, 25 Oct 2003 18:09:38 -0400
The disadvantages of Java have a lot to do with the (existence)
treatment of primitive types. Null couldn't be an object because
primitives exist, as well as special types, and as was pointed out
earlier, they couldn't be assigned back and forth. Even if Null were a
reference type you wouldn't be allowed to subclass it because TPTB would
have forseen no reason to, and would have declared it final. Or perhaps
for optimization reasons they would have made it final the same way as
String.
Learning Java I think may be especially difficult for COBOL programmers.
My first class of COBOL programmers wondered why anyone was interested
in bytes, shorts, longs, floats, doubles, etc. What possible business
reason was there to know how many bits were used?
That some variables were treated differently than other variables
(primitives v. reference types) was similarly confusing.
Oddly (or not) they took quite naturally to Java's use of static method
classes to operate on objects rather than imparting functionality to the
objects themselves through instance methods.
Thomas G. Marshall wrote:
>
>Well, I hate the hoops we all have to jump through just to understand it.
>
>Being the person that opened up this pandora's null box, I'd still like to
>know precisely /why/ null need be of type null.
>
>My long winded musings in a prior post aside, just what would have been so
>bad about having null as a literal of object (reference) type, the way true
>and false are of boolean?
>
>
-- .tom remove email address' dashes for replies opensource middleware at <http://isectd.sourceforge.net> http://gagne.homedns.org
- Next message: Cory: "Re: How do I add datum to System.in from my program?"
- Previous message: Dobromir Gaydarov: "Re: PortableRemoteObject.narrow() purpose?"
- In reply to: Thomas G. Marshall: "Re: Newbie question - Disadvantages of java"
- Next in thread: Sudsy: "Re: Newbie question - Disadvantages of java"
- Reply: Sudsy: "Re: Newbie question - Disadvantages of java"
- Reply: Thomas G. Marshall: "Re: Newbie question - Disadvantages of java"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|