Question: ioexception is a compile time exception?
Answer: 2 Answers. Because IOException is a Checked Exception, which should be either handled or declared to be thrown. On contrary, RuntimeException is an Unchecked Exception.