Question d’entretien chez Synechron

does tree data structure use hashcode and equals ? how sorting will happen internally in treeset/treemap?