dimanche 18 octobre 2015

Java Immutable objects and hashcode method

I have been asked the following question in interview : How immutable objects allow hashCode() to use lazy initialization, and to cache its return value in java? I have no clue about this. Please enlighten me by

Thanks in advance. JB.

Aucun commentaire:

Enregistrer un commentaire