Pregunta de entrevista de The Zappos Family

A Java class called Example has the following attributes: String name, int id, String description, List<String> comments. Write a method that takes an instance of the Example class as an argument and returns true if both instances are equivalent at the attribute level. Getters and setters are available for each attribute. Once added, will this method be sufficient to use Example as a key value in a Map? If not, what else is required?

Respuesta de la entrevista

Anónimo

8 ago 2018

Related to equals and hashcode