aspose file tools*
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes exception doubt Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "exception doubt" Watch "exception doubt" New topic
Author

exception doubt

vivek sivakumar
Ranch Hand

Joined: Aug 09, 2001
Posts: 187
package languagefundamentals;
import languagefundamentals.obj;
public class mainforinterface1 extends obj implements Interface1 {
public int doit(String s)
{
System.out.println(s);
return 0;
}
public static void main(String[] args) {
mainforinterface1 mymain = new mainforinterface1();
mymain.doit("vivek");
try {
mymain.finalize();// 1
}
catch(Exception Throwable){
}
}
}
well when i compile im getting a "mainforinterface1.java": Error #: 360 : unreported exception: java.lang.Throwable; must be caught or declared to be thrown at line 13, column 20
why is this problem ,


SCJP, SCWD <br />A farmer learns more from a bad harvest than a good one.
R K Singh
Ranch Hand

Joined: Oct 15, 2001
Posts: 5371
hope that helps


"Thanks to Indian media who has over the period of time swiped out intellectual taste from mass Indian population." - Chetan Parekh
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: exception doubt