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 |
What is iterator in the java collections framework? : java collections
What are the differences between the java collection and the java list? : java collections
When to use the Collection Classes(HashSet, LinkedHashSet, TreeSet....etc) in real time scenario ?
What is deque in the java collections framework? : java collections
What are the interfaces in java collections? : java collections
HOW MUCH PERCENTAGE WE DEDUCT FOR OUR SUPPLIERS OR OTHER PROFESSIONALS
Explain JSP life cycle?
what is class/object diagram
how to deploy the web application ?
What are the different types of ways where you can iterate over a list? : java collections
"Sun Certified Java Programmer" This is one String , we need to print SCJP, write the java code dynamically? pls reply this questions
what is jndi?