lab29
Mon Oct 30 2023 09:35:51 GMT+0000 (Coordinated Universal Time)
Saved by
@viinod07
class lab29
{
public static void doStuff()throws InterruptedException
{
doMoreStuff();
}
public static void doMoreStuff() throws InterruptedException
{
Thread.sleep(1000);
System.out.println("checked exception handeled using throws keyword");
}
public static void main(String args[])throws InterruptedException
{
doStuff();
}
}
content_copyCOPY
Comments