Card 2 / 13: public class Program105 { static void dispresult(int [] num){ try{ System.out.println(num[1]/(num[1]-num[2])); }catch (ArithmeticException e){ System.out.println("first Exception"); } } public static void main(String[] args) { try{ int [] arr1 = {100,100}; dispresult(arr1); }catch(IllegalArgumentException e){ System.out.println("second Exceptionss"); } catch(Exception e){ System.out.println("third Exceptionss"); } } } output ?
A)
first Exception
B)
second Exceptionss
C)
third Exceptionss
D)
Done
Answer:
C) third Exceptionss
Previous Card | ← Previous Card Button |
Next Card | → Next Card Button |
Flip Card | Space-Bar |
|