Java Runtime Exceptions Example
Chapter:
Exception Handling
Last Updated:
04-09-2016 16:15:46 UTC
Program:
/* ............... START ............... */
public class JavaRuntimeExceptions {
static void f() {
throw new RuntimeException("From f()");
}
static void g() {
f();
}
public static void main(String[] args) {
g();
}
}
/* ............... END ............... */
Output
Tags
Runtime Exceptions , Java, Exception Handling