OnJava8-Examples/exceptions/NeverCaught.java
2015-04-20 15:36:01 -07:00

16 lines
277 B
Java

//: exceptions/NeverCaught.java
// Ignoring RuntimeExceptions.
// {ThrowsException}
public class NeverCaught {
static void f() {
throw new RuntimeException("From f()");
}
static void g() {
f();
}
public static void main(String[] args) {
g();
}
} ///:~