Pergunta de entrevista da empresa VSP Vision

How would you compare two strings? Follow up question: why would you use equals()?