Please can anybody explain me the following things below::
1.What is a hashmap
2.Its use
3.What do we do to avoid collisions....

Isn't that all explained in your textbook?

I'll also link you directly to here. A hashmap by definition is almost surely implemented using a hash table, but mapping data structures also commonly use balanced binary search trees (red black being the most popular for this purpose).