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 ...



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);



}



}


}



May 19, 2022
SOLUTION.PDF

Get Answer To This Question

Submit New Assignment

Copy and Paste Your Assignment Here