GE Interview Question

Review Java code that reads from a file and identify the problem. Follow-up - how should it be fixed?

Interview Answer

Anonymous

Aug 28, 2015

Look for IOExceptions that could result in the file not being closed properly. Wrap it in a try catch finally.