new RuntimeException(String name)
/* * Output: * * */ public class MainClass { public static void main(String args[]) { try { throw new RuntimeException("demo"); } catch (Exception e) { } } }