Pregunta de entrevista de Tata Consultancy Services (North America)

Can you explain difference between compare and compareTo in Java?