Solved

What Is Output by the Following Code Fragment

Question 30

Short Answer

What is output by the following code fragment?
String hello = new String("Hello World!");
hello = hello.replace('H', 'W');
hello = hello.replace('W', 'H');
System.out.println(hello);

Correct Answer:

verifed

Verified

This will ...

View Answer

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions