InterruptedException and IOException are checked exceptions.