Question: Which code checks whether the characters in two Strings,named `time` and `money`, are the same?

  1. `if(time <> money){}`
  2. `if(time.equals(money)){}`
  3. `if(time == money){}`
  4. `if(time = money){}`

Answer: The correct answer of the above question is Option B:`if(time.equals(money)){}`