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