K
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: 207
- Filed under category JAVA
Discusssion
Login to discuss.