| |
| | [No title] (Site not responding. Last check: 2007-11-06) |
 | | Similarly, logically, the database class is an extension of the history class, in that it contains a copy of all of the members defined in the latter —the size and contents instance variables, and the addElement(), size(), and elementAt() instance methods. |
 | | This is because, at compile time, we do not know the exact value of a variable, and have to take the conservative approach of assuming it has only those members that are indicated by its type (and no other member). |
 | | Unlike other languages such as C that allow casting, Java keeps the type of a variable at runtime, and will throw an exception if the actual type, T2, does not match the type, T1, given in the cast, that is T2 is not a T1. |
| www.cs.unc.edu /~dewan/14OEBook/12Arrays.doc (3783 words) |
|