A Developer Gateway To IT World...

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

Use java 1.7 Version for multiexception

class Nine
{
    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(ArithmeticException|NumberFormatException e)
        {
            System.out.println(e);
        }
        System.out.println("Shree Radhey");
    }

}

SAMPLE OUTPUT:


LEARN TUTORIALS

.

.