Question: What will happen if you add the statement System.out.println ( 5 / 0 ) ; to a working main ( ) method? A . It
What will happen if you add the statement System.out.println; to a working main method?
A
It will run and throw an ArithmeticException.
B
It will not compile
C
It will run and throw an IllegalArgumentException.
D
None of them
E
It will not run
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
