[{“Name”:“Java SE 1.1”,“GroupName”:null},{“Name”:“Java SE 1.2”,“GroupName”:null},{“Name”:“Java SE 1.3”,“GroupName”:null},{“Name”:“Java SE 1.4”,“GroupName”:null},{“Name”:“Java SE 5”,“GroupName”:null},{“Name”:“Java SE 6”,“GroupName”:null},{“Name”:“Java SE 7”,“GroupName”:null},{“Name”:“Java SE 8”,“GroupName”:null},{“Name”:“Java SE 9 (Early Access)”,“GroupName”:null}]
BufferedWriter
(using BufferedWriter.write()
) after closing the BufferedWriter
(using BufferedWriter.close()
), it will throw an IOException
.BufferedWriter(Writer)
constructor does NOT throw an IOException
. However, the FileWriter(File)
constructor throws a FileNotFoundException
, which extends IOException
. So catching IOException
will also catch FileNotFoundException
, there is never a need for a second catch statement unless you plan on doing something different with the FileNotFoundException
.