Can the following code be considered as an example for custom exception? If not, can you please explain why from your point of view?
public class UseJDBC
{
public useJDBC() throws Exception
{
throw new Exception("ABC");
}
public static void main(String args[])
{
try
{
useJDBC a = new useJDBC();
}
catch (Exception e)
{
e.printStackTrace();
}
}
}