1. String being final is part of String's design as an immutable class.
2. System and Math are utility classes with only static methods. There are not meant to be instantiated (and that's why their constructors are private). To emphasize the fact they are not meant to be instantiated, they are marked as final, although the lack of an accessible constructor would have stopped you anyway.
I've always thought it's a shame that Java does not allow you to declare a class "abstract final". Then you could avoid defining any constructor at all.
Betty Rubble? Well, I would go with Betty... but I'd be thinking of Wilma.<br /> <br />#:^P
Jeff Albertson
Ranch Hand
Joined: Sep 16, 2005
Posts: 1780
posted
0
But I think "abstract" has the strong connotation of "built for subclassing", so that's why the combination "final+abstract" is illegal.