class D
{
public static void main(String[] args){
int a=10,b=0,c;
System.out.println("started ");
try{
c=a+b;
System.out.println("sum will be "+c);
System.out.println("no error found ");
}
catch(Exception e)
{
System.out.println("error founded");
}
System.out.println("ended");
}
}
Preview:
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