exception handling catch method working

PHOTO EMBED

Tue Jan 16 2024 05:28:37 GMT+0000 (Coordinated Universal Time)

Saved by @E23CSEU1151 #java

class D
{
    public static void main(String[] args ){
        System.out.println("Started ");
        int a=10,b=0,c;
        try{
            c=a/b;
        }
        catch(Exception e )
        {
            System.out.println("any errror found");
        }
        System.out.println("ended");
    }
}
content_copyCOPY