Given:
What will secure this code from a potential Denial of Service condition?
After Line 4, add indexReader.close().
On Line 3, enclose processData(dataReader) with try with resources.
After Line 3, add dataReader.close().
On Line 1, use try with resources when opening each dataReader.
Before Line 1, check the size of dataFiles to make sure it does not exceed a threshold.
Submit