Pregunta de entrevista de Infosys

oops,difference between compareTo() and comparator,