Java collections framework interview questions and Answers | MOST ASKED | Core Java | Code Decode

preview_player
Показать описание
This video contains tricky Java Collections Interview Questions and Answers for Freshers as well as for Experience Candidates. It also contains Internal Working of Hashmap

Udemy Course of Code Decode on Microservice k8s AWS CICD link:

Course Description Video :

Collection Hierarchy 00:16
Map doesn’t extend the Collection Interface 13:13
Difference between fail-fast and fail-safe Iterators 14:51
java BlockingQueue 16:43
Difference between Synchronized Collection and Concurrent Collection with pictorial understanding 18: 10
Internal Working of hash map with pictorial explanation 20:13

In this video of java collections interview questions we have covered java collection framework interview questions or top collections interview questions starting with hierarchy of collection framework in java
collection hierarchy in java will demonstrate in depth knowledge of candidate.

*************************************************************************************
of the Java Collection framework and most of the collections in Java are inherited from this interface except Map Interface

Contains ordered elements
May include duplicates
Supports the index-based search, random access but elements can be easily inserted irrespective of the position.

follows a FIFO approach
Elements adds at rear end and removes from the front end.

Doesn’t define an order for the elements hence index-based search is not supported
Doesn’t contain duplicates

Represents a key, value pair
Map interface does not implement the Collection.
It can only contain a unique key
can have duplicate values

In java collections interview questions Similarly all these interfaces have implementing class and all those implementing classes have some 2 3 unique feature which differentiate them from the other collections. Please have a look at each of them in video as i have limited word limit here :)

-------------------------------------------------------------------------------------------------------------------------------------

Code Decode Playlists

-------------------------------------------------------------------------------------------------------------------------------------
Subscriber and Follow Code Decode

--------------------------------------------------------------------------------------------------------------------------------------

#javacollectioninterviewquestion #topjavacollectioninterveiwquestion #javainterviewquestion #codedecode
Рекомендации по теме
Комментарии
Автор

It helped me in my interview preparation.. thanks

shubhamtagalpallewar
Автор

Though I knew about the framework completely, I had an issue explaining it in an organized way, you are just awesome!

kirushnashirre
Автор

Great video! One addition to the last question on implementation of HashMap
Since Java 8, once a threshold limit is reached for the number of linked list elements added at a particular node, the linked list is re-ordered to a binary tree to implement faster search for collision cases.

rohanbhargava
Автор

Beautiful Effort.IT Field will remember your name forever.

kathiravanjagadeesan
Автор

I have read theory before but confused after this video cleared all doubts about Hashmap, , thanks a lot

GaneshSingh
Автор

SortedSet uses Comparator(Comparator<? super E> comparator();) to sort the object in Ascending Order. This is the prime reason we use TreeSet to return the object in ascending order.

coincidentIndia
Автор

This is a awesome 'Ready Reckoner'. I watched this and all are explained clear and to the point. This is great effort by the creator. Please make more topics and please make more videos. I totally understood the points. All the very best team 👍👏

With Regards,
Prakash Karuppusamy

prakashkaruppusamy
Автор

from Java 8, the linked lists are dynamically replaced with balanced binary search trees in collision resolution after the number of collisions in a given bucket location exceed a certain threshold.

This change offers a performance boost, since, in the case of a collision, storage and retrieval happen in O(log n).

nikhleshagrawal
Автор

This is my first ever YouTube comment. I just logged in to youtube so that I can comment on your video.

You are awesome. Very well explained, very well organised. Keep it up. No nonsense videos. I am preparing for my interviews using your videos only. Pls countinue uploading many such videos.

pallavipatare
Автор

Great Explanation!!!
One more point: Hashtable doesn’t extend Hashmap.
It extends Dictionary Class.

robelhailab
Автор

16:07

When modification is performed on a collection by the same thread which is iterating over that collection.
It's not about two distinct threads for iterating and modifying.

rishiraj
Автор

your phone vibrates in almost all of your videos. thats very nice :-). it's not a complaint, take it as a compliment

dasarajusaikumar
Автор

Thanks a lot.. The best Collection summary available on YT.

mitra.
Автор

Very informative and quick to brush up collection framework with examples.

robinbhargava
Автор

In case of hash collision it also uses equals method to check if key is same. If it is same then it updates the value. Otherwise, new node is inserted.

gurudassulebhavikar
Автор

Thanks for the video. It's really helpful for interview preparation. One small doubt I have in 6:57 you said hashset internally implements hashtable and one null value can contain. But hashtable doesn't contain any null key and null value.. Please explain and correct me.

praveenagrawal
Автор

4:42 small correction, I think Linkedlist do allow index base search

tusharkawade
Автор

The way you explaining each topic is awesome.
Thank you for the amazing video.

Athira_Surendran
Автор

Nice work...one mistake is map interface doesnt extends(not implement) Collection interface

deviprasadhota
Автор

Hello Ma'am, I have learnt a lot from your channel thank you so much. I have one doubt here that the linked list does not support index based search but it has a get method through which the element is at a specific position?

sneharaghuwanshi