1.

What will be the output of the program?


String a = "ABCD"; String b = a.toLowerCase(); b.replace('a','d'); b.replace('b','c'); System.out.println(b);

A. abcd
B. ABCD
C. dccd
D. dcba
Answer» B. ABCD


Discussion

No Comment Found

Related MCQs