1.

What Is The Difference Between Capacity And Size Of Hashmap In Java?

Answer»

The CAPACITY DENOTES how many ENTRIES HashMap can STORE and size denotes how many mappings or key/value PAIR is currently present.

The capacity denotes how many entries HashMap can store and size denotes how many mappings or key/value pair is currently present.



Discussion

No Comment Found