OnJava8-Examples/exceptions/NeverCaught.java

16 lines
277 B
Java
Raw Normal View History

2015-04-20 15:36:01 -07:00
//: 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();
}
} ///:~