ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
tip       Ask Questions on ANYTHING, that arise in your Daily Life at     FORUM9.COM
Google
 
Categories  >>  Software  >>  Java J2EE  >>  Java Related  >>  Java J2EE AllOther
 
 


 

 
 Core Java interview questions  Core Java Interview Questions
 Advanced Java interview questions  Advanced Java Interview Questions
 Swing interview questions  Swing Interview Questions
 EJB interview questions  EJB Interview Questions
 Servlets interview questions  Servlets Interview Questions
 Struts interview questions  Struts Interview Questions
 JDBC interview questions  JDBC Interview Questions
 JMS interview questions  JMS Interview Questions
 SunOne interview questions  SunOne Interview Questions
 J2EE interview questions  J2EE Interview Questions
 Weblogic interview questions  Weblogic Interview Questions
 Websphere interview questions  Websphere Interview Questions
 Java Networking interview questions  Java Networking Interview Questions
 Java J2EE AllOther interview questions  Java J2EE AllOther Interview Questions
Question
Is it possible to create Userdefined Unchecked Exception
also?If Yes, give an example?
 Question Submitted By :: Shiva034
I also faced this Question!!     Rank Answer Posted By  
 
  Re: Is it possible to create Userdefined Unchecked Exception also?If Yes, give an example?
Answer
# 1
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 ?    0 Yes 0 No
Chinna
 

 
 
 
Other Java J2EE AllOther Interview Questions
 
  Question Asked @ Answers
 
what is diff string and stringbuffer HCL4
what is class/object diagram Zycus-Infotech1
httt method HCL1
Why do you use Context Object HCL2
what are callback methods? iFlex2
What is a constructor?  2
who should use JNDI?  1
what is difference between business deligate and session facade ? Fidelity2
what protocols does JNDI provide an interface to?  1
what is the difference between banking and insurance domain?  1
How to use ANT?  1
What is need of DAO? Write one simple DAO example? IBM1
whats the relation ship between LDAP and JNDI?  1
VSS Objectives  1
How do you create UserTransaction Object? How do you rollback a transaction in a method? HCL1
Is it possible to create Userdefined Unchecked Exception also?If Yes, give an example?  1
How do you debug your java program? Inforica1
whatis arguments &what is default argument CTS1
wnet use DAO design in u r project? Godrej1
what is the IDE that you have used to write your java programs? Inforica2
 
For more Java J2EE AllOther Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com