-- BufferedReader -- got: line one got: line two IOException after 2 lines: simulated read failure (disk gone) -- Scanner -- got: line one got: line two loop ended normally after 2 lines sc.ioException() = java.io.IOException: simulated read failure (disk gone)