2 Displayed Following Method Passed 5 Public Static Void Rp2 Int X X 1 Systemprintln Rp2 6 Q37036928

2. What is displayed when the following method is passed 5: public static void rp2(int x) if (x-1) System.out.println(A); r

2. What is displayed when the following method is passed 5: public static void rp2(int x) if (x-1) System.out.println(“A”); rp2(6); else if (x 3) System.out.println(‘E”); else System.out.println(“B”); rp2(x-3); System.out.println(“C”); System.out.println(“D”); Show transcribed image text 2. What is displayed when the following method is passed 5: public static void rp2(int x) if (x-1) System.out.println(“A”); rp2(6); else if (x 3) System.out.println(‘E”); else System.out.println(“B”); rp2(x-3); System.out.println(“C”); System.out.println(“D”);


Answer


Answer:-

BBABEDCDDCDCD

BBABEDCDDCDCD

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.