Question: Consider the following method public void printDivision(int m, int n ) { String output =; try { int d=m; output = The result is: +d;
Consider the following method public void printDivision(int m, int n ) \{ String output =""; try \{ int d=m; output = "The result is:" +d; \} catch(ArtithmeticException ex) \{ output = "Division by 0!"; \} Select the correct statements about variable scopes: Select one or more: a. The scope of is the whole method b. The parameter is not visible inside the catch block c. The variable is visible inside the block
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
