

MCQOPTIONS
Saved Bookmarks
1. |
What is the output of this program? class output { public static void main(String args[]) { String s1 = "Hello"; String s2 = s1.replace('l','w'); System.out.println(s2); } } |
A. | hello |
B. | helwo |
C. | hewlo |
D. | hewwo |
Answer» E. | |