OnJava8-Examples/exceptions/NeverCaught.java
2015-05-29 14:18:51 -07:00

17 lines
318 B
Java

//: exceptions/NeverCaught.java
// ©2015 MindView LLC: see Copyright.txt
// 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();
}
} ///:~