new RuntimeException(String name) : RuntimeException « java.lang « Java by API






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