Java - Exception Handling
What will happen if a method throws a checked exception but does not declare it or catch it?
public void read() {
throw new IOException();
}public void read() {
throw new IOException();
}15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions