{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

review - Exception Handling What does'throws IO exception...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
CSE 201 F ILE I/O R EVIEW I/O Why do we do file processing? What is a "Stream"? Which streams had we used before? What's the import statement do? What's a PrintWriter? o How do we declare a PrintWriter? o What methods can we use with PrintWriter? o What exceptions does a PrintWriter throw? What's a BufferedReader? o How do we declare a BufferedReader? o What methods can we use with BufferedReader? o What exceptions does a BufferedReader throw? o How do you read integers/doubles from a BufferedReader? o How do you read chars from a BufferedReader? How do you 'close' a file? o Why should you close files?
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: Exception Handling What does 'throws IO exception' mean? Why should we handle exceptions instead of sending them to the OS? When should we use exception handling? What's the syntax for a trycatch block? o How many catches are allowed to go with a try block? o How many try blocks are allowed in a program? What goes in the 'try' portion of the 'trycatch' block? What kind of exceptions can we catch? o How are these exceptions different? o What can we do when we've caught an exception?...
View Full Document

{[ snackBarMessage ]}

Ask a homework question - tutors are online