|
Interfaces, GUIs, and Applets
|
CS 161 - Java |
Two or more methods may have the same name but take different
arguments (number, type, order); they have different
signatures.
Question: In what way may two method signatures NOT differ to achieve overloading
Reclaims the memory used by objects for which no more references exists.
Question: What does that mean?; Why is it a good thing?
-
Input / Output using Reader / Writer classes from java.io package.
-
You can 'stack' different I/O classes to get additional
capabilities. e.g., the BufferedReader class.
-
Generally, all of the additional xxxReader and yyyWriter classes,
e.g., InputStreamReader, BufferedReader, FileWriter, inherit
the capabilities of the abstract parent Reader and Writer
classes.
-
Input (and Output) of text is different from I/O of Java primitive data.