} but when i remove the comment in the line 1 my coding compiles if not my IDE is showing me error in that line
my question is constructors are not members of class then why its asking to decalre throws class in the construstor like overriding methods require looking for your methods regards amir [ October 23, 2008: Message edited by: Amirtharaj Chinnaraj ]
Apparently the superclass constructor (i.e., the no-argument constructor of class XMLReaderAdapter) declares that it throws some exception type. When a subclass object is constructed, the superclass constructor is always also called. Since there's no way for your subclass constructor to catch or cancel any exceptions thrown by the superclass constructor, the only remaining choice is to declare that the subclass constructor throws the same exception.
You can change your declaration to throw only the specific type thrown by XMLReaderAdapter, whatever that is. [ October 23, 2008: Message edited by: Ernest Friedman-Hill ]