A
Q. What is the output of the following code snippet?
Code:
String s1 = “Hello”;
String s2 = sA)replace(‘l’, ‘z’);
System.out.println(s2);
String s2 = sA)replace(‘l’, ‘z’);
System.out.println(s2);
- Correct Answer - Option(A)
- Views: 17
- Filed under category Java
- Hashtags:
Discusssion
Login to discuss.