Organizational Research By

Surprising Reserch Topic

Experts Most Trusted Topic


boostr.in questions - Question:How to create custom exceptions?


A. By extending the Exception class or one of its subclasses.

Example:

class MyException extends Exception {
  public MyException() { super(); }
  public MyException(String s) { super(s); }
  }


asked Sep 13, 2013 in Java Interview Questions by rajesh
edited Sep 12, 2013
0 votes
11 views



Related Hot Questions



Walkin Jobs Opening



Government Jobs Opening


...