A
Q. What will be the output of the following Java program?
class output
{
public static void main(String args[])
{
String s1 = "Hello";
String s2 = s1.replace('l','w');
System.out.println(s2);
}
}
- Correct Answer - Option(D)
- Views: 26
- Filed under category Java
- Hashtags:
Discusssion
Login to discuss.