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 |
my interviewer asked me what technical specification you used how to answer that question
Which interface does java.util.hashtable implement?
In hyderabad, which s/w training center is best for java, other than corejava what r the new tools to learn in java,which tool is best & have current requirement,pls give me information about java to learn ?
what are callback methods?
can u draw class/object diagram for ATM
0 Answers HCL, Zycus Infotech,
What are the different types of ways where you can iterate over a list? : java collections
What is the servletcontext listener and what is JspContext and page context pls tell in simple words.
Which is the better framework for web applications, struts or spring, and why?
what is difference between struts1.2 and struts2.0
whats the relation ship between LDAP and JNDI?
who will give req's to u?. how they send req's to u? . what design documents contains?. when bugs raised on other developer code how to report to them?.(throgh mail or ........). how to retrive 100 recods from dao layer to presentation layer.using which collection?. what is sequence diagram.?.
Explain the OOPS concept in Realtime Scenarion ? Take example as CAR. Please explain indetail ?