Should class IOException in Java have been an unchecked RuntimeException?

前端 未结 6 1009
夕颜
夕颜 2021-02-05 05:29

Do you agree that the designers of Java class java.io.IOException should have made it an unchecked run-time exception derived from java.lang.RuntimeException<

6条回答
  •  梦谈多话
    2021-02-05 06:16

    I know it has been 4 years since this question was asked but an UncheckedIOException was added in Java 8.

提交回复
热议问题