Java collections framework interview questions and Answers | MOST ASKED | Core Java | Code Decode
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
Collections Interview Questions part -2 : • Most Asked Java Collec...
Udemy Course of Code Decode on Microservice k8s AWS CICD link:
openinapp.co/udemycourse
Course Description Video :
yt.openinapp.co/dmjvd
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.
*************************************************************************************
In java collections interview questions. java.util.Collection is the root
of the Java Collection framework and most of the collections in Java are inherited from this interface except Map Interface
java.util.List :
Contains ordered elements
May include duplicates
Supports the index-based search, random access but elements can be easily inserted irrespective of the position.
java.util.Queue
follows a FIFO approach
Elements adds at rear end and removes from the front end.
java.util.Set:
Doesn’t define an order for the elements hence index-based search is not supported
Doesn’t contain duplicates
java.util.Map
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 :)
The Java BlockingQueue interface, java.util.concurrent.BlockingQueue, represents a queue which is thread safe to put elements into, and take elements out of from. In other words, multiple threads can be inserting and taking elements concurrently from a Java BlockingQueue, without any concurrency issues arising.
-------------------------------------------------------------------------------------------------------------------------------------
Code Decode Playlists
Most Asked Core Java Interview Questions and Answers : • Core Java frequently a...
Advance Java Interview Questions and Answers : • Advance Java Interview...
Java 8 Interview Questions and Answers : • Java 8 Interview Quest...
Hibernate Interview Questions and Answers : • Hibernate Interview Qu...
Spring Boot Interview Questions and Answers : • Advance Java Interview...
Angular Playlist : • Angular Course Introdu...
GIT : • GIT
-------------------------------------------------------------------------------------------------------------------------------------
Subscriber and Follow Code Decode
Subscriber Code Decode : kzread.info?...
Linkedin : / codedecodeyoutube
Instagram : / codedecode25
--------------------------------------------------------------------------------------------------------------------------------------
#javacollectioninterviewquestion #topjavacollectioninterveiwquestion #javainterviewquestion #codedecode
Пікірлер: 426
It helped me in my interview preparation.. thanks
@CodeDecode
3 жыл бұрын
Hope you get all your interviews cleared. All the the best 🤟
@suratdas3866
3 жыл бұрын
@@CodeDecode aa
@realnileshpawar
2 жыл бұрын
Kuthe rahto bhau tu? Do u want to take live instructor led classes? I have over 5 years of experience in corporate.
@TheBoysZone
2 жыл бұрын
as ka😂😂😂😂
@accforgame8563
Жыл бұрын
@@realnileshpawar how do i contact u?.
Though I knew about the framework completely, I had an issue explaining it in an organized way, you are just awesome!
@CodeDecode
3 жыл бұрын
Thanks 👍
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.
@CodeDecode
3 жыл бұрын
Thanks for the info
@JenilCalcuttawala
Жыл бұрын
Binary but Binary Search Tree right?
@JustOssetian
Жыл бұрын
@@JenilCalcuttawala red black tree
SortedSet uses Comparator(Comparator
Beautiful Effort.IT Field will remember your name forever.
@CodeDecode
3 жыл бұрын
Thanks for wonderful comment kathiravan. you might not know this but you made our day and all the efforts we did now turned meaningful bcz of such nice words🙏🙏. We , team code decode is grateful 🙏🙏. keep learning Kathiravan, you will surely land at your dream place really soon. all the best 👍👍👍👍
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
@CodeDecode
3 жыл бұрын
Thanks for the nice words Prakash. We will sure make more videos like this ....
The way you explaining each topic is awesome. Thank you for the amazing video.
@CodeDecode
3 жыл бұрын
Thanks for the nice words.....
Really a nice approach to make understand the topic. Just one request, plz add some behavioral questions related to collection as interviewer can ask that also.
Thank u so much,your way of explaining concepts are wonderful.I am feeling so confident in Java after watching your interview questions.
@CodeDecode
3 жыл бұрын
Thanks Shivani 👍👍. Keep learning keep shining ⭐✨⭐✨
It enhanced my knowledge for sure. Thanks.
I have read theory before but confused after this video cleared all doubts about Hashmap,, thanks a lot
@CodeDecode
3 жыл бұрын
We are glad to know that this helps Ganesh 🙏👍
Very informative and quick to brush up collection framework with examples.
@CodeDecode
11 ай бұрын
Thanks Robin 🙂👍
Everything explained to the point!! Thank you for making great videos
@CodeDecode
2 жыл бұрын
Thanks Savita 👍
You are awesome, thanks for thanking your time to help us on interview preparations!
@CodeDecode
2 жыл бұрын
Thanks for motivating us to put more efforts for community 🙂. We are glad to do that 🙂👍
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).
@CodeDecode
3 жыл бұрын
Yes we have covered that in latest videos I. E. top interview questions 👍👍. Thanks
@jakubdudek4133
Жыл бұрын
For others who are interested in that particular topic, the threshold by default is 8 as far as I remember. :) So "after" 8 nodes, LinkedList is being switched to Tree Balance Structure.
This is my first ever KZread 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.
@CodeDecode
2 жыл бұрын
Thanks Pallavi 🙂👍
Ma'am, thank you for this. It really helped me in cracking Amdocs. I was able to recall the exact same thing you taught in this video. I can say, that I've done DSA and used every framework that's why it looked very understandable at the very first go.
@CodeDecode
2 жыл бұрын
Congratulations Anshuman 🎊🎊🎉🎉
@shouryapradhan184
2 жыл бұрын
HI Anshuman , Bro i have an Amdocs interview in upcomming week. Can u pls help me in that like how is the interview and what questions were asked in that interview please ? Can we connect?
@anshumanpanigrahi7817
2 жыл бұрын
@@shouryapradhan184 Topics- Java, Oops, Threads, Collections, SQL, DBMS, Unix commands, 2 programming questions. Go through interview experiences from gfg & Coding Ninjas/CodeStudio, that'll be enough. Mine was for developer profile.
@shouryapradhan184
2 жыл бұрын
@@anshumanpanigrahi7817 Thanks a lot for reply bro. Mine interview is also for developer role 2 years of experience. May i know what type of programming questions were asked in interview ?
Thanks a lot.. The best Collection summary available on YT.
your phone vibrates in almost all of your videos. thats very nice :-). it's not a complaint, take it as a compliment
@CodeDecode
2 жыл бұрын
we fixed this issue in new videos. Thanks 👍👍😊😊
Great Explanation!!! One more point: Hashtable doesn’t extend Hashmap. It extends Dictionary Class.
@CodeDecode
10 ай бұрын
👍👍
very nicely explained... eagerly waiting for Multi-threading concepts.. once again good job!
@CodeDecode
3 жыл бұрын
Thanks .......
Best study video for interview
@CodeDecode
3 жыл бұрын
Thanks 👍👍
Nice explanation friend thank you very much for sharing.
@CodeDecode
3 жыл бұрын
Thanks for the nice words 👍
Thank you so much, madam. You explained in-depth and very nicely
@CodeDecode
3 жыл бұрын
Thanks 👍👍
Hi Mam, this video about collections helped me during my interview with TCS and I secured a job offer! Thank you very much and I will continue to look through your other videos to help broaden my knowledge
Really very good explanation. We are lucky to watch this.
@CodeDecode
3 жыл бұрын
Thanks Vinod 👍
Hi.. Your videos are the best. You explain so well. Thanks a ton for your efforts. One request.. can you please make a video on how time complexity works in collection?. It would be a great help. Thanks in advance. 🙂
@Sanketpatil96k
13 күн бұрын
The time complexity of a collection is the amount of time it takes to perform an operation on the collection
Thank you for the amazing video.. It helped me a lot for my interview.
@CodeDecode
3 жыл бұрын
Thanks for writing back to us Parul . We hope u land at your dream job soon. All the very best from team code decode, for your interviews. Keep learning keep growing.
Best i have seen before the way ur explaining very well thank you
@CodeDecode
2 жыл бұрын
you're welcome venkat
Very good questions and their detailed explanation. Thanks 👍👍
@CodeDecode
3 жыл бұрын
Thanks for the nice words...
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?
Explanation is awesome. Just a suggestion. In the diagram just put dotted line for interface and solid line for class. So while seeing the diagram people will understand the concept.
@CodeDecode
3 жыл бұрын
That's a very nice suggestion. Thanks 🙏👍👍👍👍
Very nicely explained, Please make a video on whole springboot concepts... With theory and coding as well
@CodeDecode
3 жыл бұрын
Sure will make a video on that too
Thank you so much , I found all my interviews questions from there...We need people like you!
@CodeDecode
2 жыл бұрын
Thanks for nice words chandan
Thank you, nice explanation of all collections, mostly I like internal working of hash map, got the more clarity….
@CodeDecode
Жыл бұрын
kzread.info/dash/bejne/aZ9kuLuBpbisZso.html
Hats off very nicely explained and your presentation is also too good.
@CodeDecode
3 жыл бұрын
Thanks 👍
Nice explanation,you are doing a great job. Thank You
@CodeDecode
3 жыл бұрын
Thanks Bhushan 👍👍
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.
Respect for your explanation ma'am...
@CodeDecode
3 жыл бұрын
Thanks 👍
This special video covered all related to collection and its interview questions have watched so many videos about that but here have learnt in very different way thanks for sharing such valuable content in the video keep sharing like this we get to learn more..❤❤
thanks for all the tricky quaetions, please explain the HashMap with some examples and this is very short. because i was understanding this only theoretically but havent't implemented. bit more explanation on hash map.. it also talks about the equals() and hashCode() contract..
@CodeDecode
3 жыл бұрын
Hi Venkat These are only interview questions. Will create tutorial for this very soon 👍👍
@venkatkancharla984
3 жыл бұрын
@@CodeDecode sure, thanks
Seriously very great explanation ❤️
@CodeDecode
2 жыл бұрын
Thanks a lot 🙂🙂👍👍
superb.....Nice presentation .If possible, can you please do video like most asked interview questions which covers all the concepts in core and advanced
@CodeDecode
3 жыл бұрын
Sure I will cover all of them, from simple to advanced in parts soon
Each and every video is so informative!! Love your content ❤️..
@CodeDecode
2 жыл бұрын
thanks kaushiki
Nice work...one mistake is map interface doesnt extends(not implement) Collection interface
Such helpful content and appreciate your hardwork Thank you mam!!
@CodeDecode
2 жыл бұрын
Thanks Manoj 🙂👍
Very good. Explanation. Thank You 😊
@CodeDecode
2 жыл бұрын
Thanks 🙏
Thank you for a very detailed explanation. :) Expecting more videos like this.
@CodeDecode
2 жыл бұрын
Sure Shamil. We will upload more videos on collection framework
very clear and crisp explaination 💥
@CodeDecode
2 жыл бұрын
Thanks Shubham 🙂👍
Nice video keep it up 👍
@CodeDecode
3 жыл бұрын
Thanks ☺️
Thanks . Please do the video showing the internal implementation of HashSet as well and also tell the info like in which scenario which kind of Collection is the suitable one to use
@CodeDecode
3 жыл бұрын
Nice topic thanks 👍
Awesome Explanation
@CodeDecode
3 жыл бұрын
Thanks......
Thank you once again for explaiing clearly
@CodeDecode
Жыл бұрын
Thanks Chisha Malama 🙂🙂👍👍
Very clear explanation.. and provide example code 👍👍👍👍
@CodeDecode
3 жыл бұрын
Thanks Siva 👍👍
Excellent videos, Thank you so much!
@CodeDecode
2 жыл бұрын
Thanks Nidhi 🙂👍
Thanks a lot for the awesome content!!
@CodeDecode
3 жыл бұрын
👍
Yes this is literally most asked and top questions. Thanks.
@CodeDecode
Ай бұрын
Thanks
For hashmap internal working, hashcode method is called by hash method of HashMap and hash method calculates index based on hashcode value
@CodeDecode
2 жыл бұрын
kzread.info/dash/bejne/aZ9kuLuBpbisZso.html
5 lakh 48 thousand + views Congrats 🎉🎉🎉
@CodeDecode
Жыл бұрын
Thanks Rishi for your constant support
Wow great mam thanks for this amazing video🔥
@CodeDecode
3 жыл бұрын
👍👍
Wow great explaination
@CodeDecode
3 жыл бұрын
Thanks 👍
Thanks for the great video. Helped me a lot.
@CodeDecode
2 жыл бұрын
You're welcome
Thank you so much for such useful content 🔥🔥🙏
@CodeDecode
3 жыл бұрын
You are welcome.......
Superbbb...! your explanation skills are just awesome.... and ur voice is adorable as well. thanks for this questions set it will be really helpful
@CodeDecode
2 жыл бұрын
Thanks Sagar 🙂🙂
Great explanation!
@CodeDecode
3 жыл бұрын
Thanks..
Very well explained! thank you
@CodeDecode
2 жыл бұрын
Thanks 👍👍
Thank you mam .....your way of talking/understanding.....love it
@CodeDecode
2 жыл бұрын
You're welcome kamal.....
@kamallochannayak2706
2 жыл бұрын
❤
Very good to remember and recollect
@CodeDecode
2 жыл бұрын
Thanks Sanjeev 🙂👍
Thanks for wonderful explanation 🤝
@CodeDecode
Жыл бұрын
You are welcome
Please make a video for Spring interview questions as well..
@CodeDecode
3 жыл бұрын
Sure will do that soon
@harshadakankhar4875
3 жыл бұрын
Code Decode anyway the way you explain is just wow 🤗🤗
@CodeDecode
3 жыл бұрын
thanks :) 👍
Nice content.. Thanks
@CodeDecode
3 жыл бұрын
Welcome 👍
Your video helps me a lot for preparation of interview. Do you have any the text tutorial also for it?
nicely done
@CodeDecode
3 жыл бұрын
Thanks!
Nice one.. Thanks
@CodeDecode
3 жыл бұрын
👍
Please make another video(part2)on collections tricky questions and include concepts like internal working of hash set
@CodeDecode
3 жыл бұрын
kzread.info/head/PLyHJZXNdCXsfqAkteaQ6JfZ_IHvxX-Hj3
just subscribed your channel after this video.. thanks :)
@CodeDecode
3 жыл бұрын
M glad you find this helpful
Good one mam,please continue such videos.
@CodeDecode
2 жыл бұрын
sure we will upload more
an image with all the information would be great
Very good explanation of Internal working of hashmap. Liked it.
@CodeDecode
2 ай бұрын
Thanks
Thanks for the video, really helpful 👍
@CodeDecode
2 жыл бұрын
You are welcome neeraj...
Beautiful voice.. 😅 and the content is so good that you almost covered main topics that can consume most of the time at institutes.
@CodeDecode
Жыл бұрын
Thanks Ravi 🙂🙂
Pleasr create more tricky questions on collections
@CodeDecode
2 жыл бұрын
sure sreeja we will create soon
Excellent.
@CodeDecode
3 жыл бұрын
Thanks ....
Good video
@CodeDecode
2 жыл бұрын
Thanks
I think you should also cover hashmap enhancement in java8. i.e from linkedlist to binary tree , when the linkedlist size increses. but anyways, Its nice and expecting more experience level questions on collection
@CodeDecode
3 жыл бұрын
Sure 👍👍
so nice love it
@CodeDecode
2 жыл бұрын
Thanks 🙂👍
Superb
@CodeDecode
3 жыл бұрын
Thanks :)
Very Well Explained.
@CodeDecode
2 жыл бұрын
Thanks Ammar 🙂👍
Very nice one. CAN you also please elaborate on live examples on each collection class. That's wud help us a lot
@CodeDecode
2 жыл бұрын
Sure Anupama 👍👍
@sriharini8309
2 жыл бұрын
@@CodeDecode Thaks much for the reply. Please make a video on recat and angula part also.
Awesome video for java collections 💯💯💯
@CodeDecode
3 күн бұрын
Thanks sakshi 👍
very nice but need more questions from collections with demonistration
@CodeDecode
2 жыл бұрын
Sure we will create soon
Thnks for this video 🙏🏼
@CodeDecode
3 жыл бұрын
You're Welcome...
4:42 small correction, I think Linkedlist do allow index base search
yes i would love to see internal working of hashSet
@CodeDecode
2 жыл бұрын
kzread.info/dash/bejne/aZ9kuLuBpbisZso.html
Good videos. Question - how can a programmer know, if there was a hashmap collision or not?
Awesome !!
@CodeDecode
2 жыл бұрын
Thanks
Explanation was good,can do a video on soap web services
@CodeDecode
3 жыл бұрын
Thanks. Sure will make a video on rest web services soon then will cover soap too
the video is very usefull . at 3.40 you interchangeably used implements and extends keyword . if possible correct that .
Quite useful info👍
@CodeDecode
3 жыл бұрын
Thanks 🙏
Good content
@CodeDecode
3 жыл бұрын
Thanks 👍👍