How to Compare two strings in JAVA - Interview question

Published --