nested catch block (176)

PHOTO EMBED

Tue Jan 16 2024 11:41:11 GMT+0000 (Coordinated Universal Time)

Saved by @E23CSEU1151 #java

class G
{
    public static void main(String[] args){
    try
    {
        int a=10, b=0 , c;
        c=a/b;
        System.out.println(c);
        System.out.println("no error found");
    }
    catch(Exception a)
    {
        try
        {
            String p="okkk";
            System.out.println(p.toUpperCase());
            System.out.println("some  error found");
        }
        catch(Exception u)
        {
            System.out.println("big  error found");
        }
    }
    
    }
}
content_copyCOPY