Collection

Difference between Hashtable and HashMap in Java

Here you will learn about difference between Hashtable and HashMap in Java. Both Hashtable and HashMap are data-structure based upon hashing and implementation of Map interface, and almost seems to be similar but there is significant difference between both which is described as follows. Characteristic Hashtable HashMap Synchronization Hashtable is  synchronized internally. Synchronization means that …

Difference between Hashtable and HashMap in Java Read More »

Difference between Array and ArrayList in Java

Here you will learn about difference between array and arraylist in java. Both array and arraylist are most important and frequently used data structure in java. Below I have discussed about various differences between them.   Difference between Array and ArrayList in Java Property Array ArrayList Size Array is fixed in size. Once declared, its …

Difference between Array and ArrayList in Java Read More »