Question: ` ` ` public static void myMethod ( int n ) { if ( n 1 ) return; System.out.print ( n + )
public static void myMethod int n
ifn
return;
System.out.printn ;
myMethodn ;
What will myMethod do
will be printed on the terminal.
will be printed on the terminal.
The method will keep running again and again without ever stopping. The method will execute and nothing will be printed on the terminal.
Only the number will be printed on the terminal.
Only the number will be printed on the terminal.
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
