16 lines
277 B
Java
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();
|
||
|
}
|
||
|
} ///:~
|