Lecture 21
15
mars:> type foo 
• try {  
•   // retrieve foo from current directory
•   // cast to TextFile and print contents
• }  
• catch (NullPointerException e) {
•   // throw a JunoException
• }
• catch (ClassCastException e) {
•   // throw a JunoException
• }