Answer should be "Not Equal".
if("String".replace('g','G') == "String".replace('g','G'))
The code above compare two reference to the different
String object. Pls remember String is immutable Class, So "String".replace('g','G') will result in creating reference to a new String object with value of "StringG". Two times excution will create two different reference, so the result of comparison is the false. Hope explanation makes sense.