Is it possible to create Userdefined Unchecked Exception
also?If Yes, give an example?
Answer / chinna
Yes,
public class UnCheckedExceptionExam extends RuntimeException
{
public UnCheckedExceptionExam(){
System.out.println("No argument");
}
public UnCheckedExceptionExam(String message){
System.out.println(message);
System.out.println(initCause(new Throwable("define
exception")));
}
public UnCheckedExceptionExam(Throwable cause){
System.out.println(cause.getCause());
}
public UnCheckedExceptionExam(String message,Throwable
cause){
System.out.println(message);
System.out.println(cause.getCause());
}
}
| Is This Answer Correct ? | 1 Yes | 0 No |
wnet use DAO design in u r project?
what debugging tool that can be used to debug the java programs?
what is difference between business deligate and session facade ?
What are the types of the main implementing classes in the map interfaces? : java collections
what is difference between vector and arraylist?.
how to delete cookie information?and when it will delete?
what is the IDE that you have used to write your java programs?
2 Answers Inforica, Interface Software,
What are the different types of collections views being provided by the map interface? : java collections
What is the use of the list interface in the java collection? : java collections
what are advantages of HQL? what are advantages of Native SQL? what are advantages of Criteria API?
Hi Friends, i have searched in google but not clear. can you give bank example with synchronized keyword
What is need of DAO? Write one simple DAO example?