Skip to content

Commit 7735616

Browse files
authored
Update README.md
1 parent 19425bd commit 7735616

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -934,4 +934,16 @@ The Primary Key attributes only allow scalar (single) values; and string, number
934934

935935
---
936936

937+
### 60. What is the difference between list and hash table?
938+
939+
ArrayList is an ordered Collection of objects, the objects will be in the same order that you use to add them to the ArrayList.
940+
941+
HashTable is a Collection of Key Value Pair. Each object in the HashTable is defined by a Key and Value.
942+
943+
Generally the ArrayList is quicker than the HashTable to insert elements in some cases. But when you have to lookup for an element the HashTable (using the key to search) is faster than the ArrayList.
944+
945+
**[Back to Top](https://github.com/aatul/Java-Interview-Questions-Answers/blob/master/README.md#java-interview-questions-answers)**
946+
947+
---
948+
937949
Wish you all the luck.

0 commit comments

Comments
 (0)