new RuntimeException(String name) : RuntimeException « java.lang « Java by API
- Java by API
- java.lang
- RuntimeException
new RuntimeException(String name)
/*
* Output:
*
*
*/
public class MainClass {
public static void main(String args[]) {
try {
throw new RuntimeException("demo");
} catch (Exception e) {
}
}
}
Related examples in the same category