Expect the OUTPUT!

import java.io.*; public class Exceptions { public static void main(String[] args) { try { int n = Integer.parseInt(args[0]); } catch(NumberFormatException e) { System.out.println("Exception raised"); } catch(Exception f) { System.out.println("Number format exception raised"); } } }

IF THE INPUT GIVEN IS -1, WHAT IS THE EXPECTED OUTPUT...?

×

Problem Loading...

Note Loading...

Set Loading...