Preview:
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();
}
}
downloadDownload PNG downloadDownload JPEG downloadDownload SVG

Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!

Click to optimize width for Twitter