Why doesnt the read file method catch any exceptions


Problem

1. Why doesn't the read File method catch any exceptions?

2. Consider the try/finally statement in the read File method. Why was the in variable declared outside the try block?

3. Suppose the user specifies a file that exists and is empty. Trace the flow of execution in the Data Analyzer program.

4. Why didn't the read Data method call has Next Int/ has Next Double to ensure that the No Such Element Exception is not thrown?

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: Why doesnt the read file method catch any exceptions
Reference No:- TGS02628415

Expected delivery within 24 Hours