Question: Consider the following method: public static int method 1 ( int num, int res ) { if ( num = = 0 ) return res;
Consider the following method:
public static int methodint num, int res
if num
return res;
else
return methodnum num res;
What will be the method return if it is invoked as method
No output
Infinite recursion
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
