MCQOPTIONS
Saved Bookmarks
| 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 | |