A Developer Gateway To IT World...

Techie Uncle Software Testing Core Java Java Spring C Programming Operating System HTML 5 Java 8 ES6 Project

What is the sample output of the program ?

program of MultiCatch

program of MultiCatch





class Eight
{
   public static void main(String args[])
   {
      try
      {

         int n=Integer.parseInt(args[0]);

         int m=Integer.parseInt(args[1]);

         System.out.println(n/m);

      }

      catch(RuntimeException e)
      {

         System.out.println(e);

      }

      catch(ArithmeticException e)

      {

         System.out.println(e);

      }

      catch(NumberFormatException e)

      {

         System.out.println(e);

      }

      System.out.println("Shree Krishna");
   }

}


OutPut:-
outtput


 

LEARN TUTORIALS

.

.