| 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: 5369
|
|
|
hope that helps
|
"Thanks to Indian media who has over the period of time swiped out intellectual taste from mass Indian population." - Chetan Parekh
|
 |
 |
|
|
subject: exception doubt
|
|
|