What is the output produced by the following code?
public class Question2
{
public static void main(String[] args)
methodB(3);
}
public static void methodB(int n)
if (n
System.out.println('B');
else
//The following two lines are in the reverse of
//their order in Self-Test Question 1.
System.out.println('R');
methodB(n - 1);
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here