What is difference between HashMap and TreeMap?

HashMap allows a single null key and multiple null values. TreeMap does not allow null keys but can have multiple null values . HashMap allows heterogeneous elements because it does not perform sorting on keys. TreeMap allows homogeneous values as a key because of sorting.

Sizin İçin Seçtik  How do I find the key-value of a map in Salesforce?

Leave a Reply

Your email address will not be published. Required fields are marked *