multiple try catch block

PHOTO EMBED

Tue Jan 16 2024 09:52:10 GMT+0000 (Coordinated Universal Time)

Saved by @E23CSEU1151 #java

class F
{
    public static void main(String[] args){
        try
        {
            int a=10,b=0,c;
            c=a/b;
            System.out.println(c);
        }
        catch(Exception a)
        {
            
            System.out.println("error found ");
        }
        try
        {
            int a[] ={10,20,30};
            System.out.println(a[3]);
        }
        catch(ArrayIndexOutOfBoundsException b)
        {
            System.out.println("error found ");
        }
        
        
    }
}
content_copyCOPY