Java collections framework interview questions and Answers | MOST ASKED | Core Java | Code Decode
Вставка
- Опубліковано 9 лип 2024
- 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 : ua-cam.com/users/CodeDecode?...
Linkedin : / codedecodeyoutube
Instagram : / codedecode25
--------------------------------------------------------------------------------------------------------------------------------------
#javacollectioninterviewquestion #topjavacollectioninterveiwquestion #javainterviewquestion #codedecode
It helped me in my interview preparation.. thanks
Hope you get all your interviews cleared. All the the best 🤟
@@CodeDecode aa
Kuthe rahto bhau tu? Do u want to take live instructor led classes? I have over 5 years of experience in corporate.
as ka😂😂😂😂
@@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!
Thanks 👍
SortedSet uses Comparator(Comparator
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.
Thanks for the info
Binary but Binary Search Tree right?
@@JenilCalcuttawala red black tree
It enhanced my knowledge for sure. Thanks.
The way you explaining each topic is awesome.
Thank you for the amazing video.
Thanks for the nice words.....
Thanks a lot.. The best Collection summary available on YT.
Thank u so much,your way of explaining concepts are wonderful.I am feeling so confident in Java after watching your interview questions.
Thanks Shivani 👍👍. Keep learning keep shining ⭐✨⭐✨
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
Thanks for the nice words Prakash. We will sure make more videos like this ....
Beautiful Effort.IT Field will remember your name forever.
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 👍👍👍👍
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).
Yes we have covered that in latest videos I. E. top interview questions 👍👍. Thanks
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.
Everything explained to the point!! Thank you for making great videos
Thanks Savita 👍
You are awesome, thanks for thanking your time to help us on interview preparations!
Thanks for motivating us to put more efforts for community 🙂. We are glad to do that 🙂👍
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.
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
Very informative and quick to brush up collection framework with examples.
Thanks Robin 🙂👍
I have read theory before but confused after this video cleared all doubts about Hashmap,, thanks a lot
We are glad to know that this helps Ganesh 🙏👍
Great Explanation!!!
One more point: Hashtable doesn’t extend Hashmap.
It extends Dictionary Class.
👍👍
This is my first ever UA-cam 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.
Thanks Pallavi 🙂👍
very nicely explained... eagerly waiting for Multi-threading concepts.. once again good job!
Thanks .......
Thank you for the amazing video.. It helped me a lot for my interview.
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.
Thank you so much, madam. You explained in-depth and very nicely
Thanks 👍👍
Seriously very great explanation ❤️
Thanks a lot 🙂🙂👍👍
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..❤❤
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.
Really very good explanation.
We are lucky to watch this.
Thanks Vinod 👍
your phone vibrates in almost all of your videos. thats very nice :-). it's not a complaint, take it as a compliment
we fixed this issue in new videos. Thanks 👍👍😊😊
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.
Congratulations Anshuman 🎊🎊🎉🎉
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?
@@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.
@@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 ?
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?
Best i have seen before the way ur explaining very well thank you
you're welcome venkat
Each and every video is so informative!! Love your content ❤️..
thanks kaushiki
Very good questions and their detailed explanation. Thanks 👍👍
Thanks for the nice words...
Yes this is literally most asked and top questions. Thanks.
Thanks
Best study video for interview
Thanks 👍👍
Nice explanation friend thank you very much for sharing.
Thanks for the nice words 👍
Thanks a lot for the awesome content!!
👍
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. 🙂
The time complexity of a collection is the amount of time it takes to perform an operation on the collection
Nice explanation,you are doing a great job. Thank You
Thanks Bhushan 👍👍
Hats off very nicely explained and your presentation is also too good.
Thanks 👍
Such helpful content and appreciate your hardwork Thank you mam!!
Thanks Manoj 🙂👍
Thank you, nice explanation of all collections, mostly I like internal working of hash map, got the more clarity….
ua-cam.com/video/7k0VYHuUF6g/v-deo.html
Thank you for a very detailed explanation. :) Expecting more videos like this.
Sure Shamil. We will upload more videos on collection framework
Excellent videos, Thank you so much!
Thanks Nidhi 🙂👍
Superbbb...! your explanation skills are just awesome....
and ur voice is adorable as well. thanks for this questions set it will be really helpful
Thanks Sagar 🙂🙂
Very good explanation of Internal working of hashmap. Liked it.
Thanks
Respect for your explanation ma'am...
Thanks 👍
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.
That's a very nice suggestion. Thanks 🙏👍👍👍👍
Thanks for the great video. Helped me a lot.
You're welcome
Thank you so much for such useful content 🔥🔥🙏
You are welcome.......
Nice work...one mistake is map interface doesnt extends(not implement) Collection interface
Very good. Explanation. Thank You 😊
Thanks 🙏
Very nicely explained,
Please make a video on whole springboot concepts... With theory and coding as well
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!
Thanks for nice words chandan
Thank you once again for explaiing clearly
Thanks Chisha Malama 🙂🙂👍👍
Wow great mam thanks for this amazing video🔥
👍👍
Very well explained! thank you
Thanks 👍👍
Awesome video for java collections 💯💯💯
Thanks sakshi 👍
very clear and crisp explaination 💥
Thanks Shubham 🙂👍
Thank you mam .....your way of talking/understanding.....love it
You're welcome kamal.....
❤
Thank you so much for the video :)
Thanks for writing back Srikar 👍👍
For hashmap internal working, hashcode method is called by hash method of HashMap and hash method calculates index based on hashcode value
ua-cam.com/video/7k0VYHuUF6g/v-deo.html
Thanks for the video, really helpful 👍
You are welcome neeraj...
superb.....Nice presentation .If possible, can you please do video like most asked interview questions which covers all the concepts in core and advanced
Sure I will cover all of them, from simple to advanced in parts soon
Thanks for wonderful explanation 🤝
You are welcome
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..
Hi Venkat
These are only interview questions. Will create tutorial for this very soon 👍👍
@@CodeDecode sure, thanks
Great explanation!
Thanks..
Very clear explanation.. and provide example code 👍👍👍👍
Thanks Siva 👍👍
just subscribed your channel after this video.. thanks :)
M glad you find this helpful
very informative Thanks
Glad you found it helpful😊
16:07
ConcurrentModificationException:-
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.
its very nice ad helpful.
Thanks Sonali 👍
Awesome Explanation
Thanks......
Thnks for this video 🙏🏼
You're Welcome...
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
Nice topic thanks 👍
Nice video keep it up 👍
Thanks ☺️
Beautiful voice.. 😅 and the content is so good that you almost covered main topics that can consume most of the time at institutes.
Thanks Ravi 🙂🙂
Wow great explaination
Thanks 👍
Please make a video for Spring interview questions as well..
Sure will do that soon
Code Decode anyway the way you explain is just wow 🤗🤗
thanks :) 👍
Very good to remember and recollect
Thanks Sanjeev 🙂👍
Your video helps me a lot for preparation of interview. Do you have any the text tutorial also for it?
Thank you very much
😊👍
Please make another video(part2)on collections tricky questions and include concepts like internal working of hash set
ua-cam.com/play/PLyHJZXNdCXsfqAkteaQ6JfZ_IHvxX-Hj3.html
an image with all the information would be great
Very Well Explained.
Thanks Ammar 🙂👍
4:42 small correction, I think Linkedlist do allow index base search
Thanks its really helpful 😊
We are glad it's helpful. Thanks for writing back Ravi 👍
Nice content.. Thanks
Welcome 👍
Awesome !!
Thanks
Good one mam,please continue such videos.
sure we will upload more
Thanks.. that was awesome 👍
Thanks Sourabh 🙂👍
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
Sure 👍👍
so nice love it
Thanks 🙂👍
Thanks a lot👏
👍
You just nailed the Collections . One small request please do video on Collections on Java 8 prospective.
Sure will make a seperate video on Java 8 specific changes
5 lakh 48 thousand + views
Congrats 🎉🎉🎉
Thanks Rishi for your constant support
Excellent.
Thanks ....
Nice one.. Thanks
👍
Pleasr create more tricky questions on collections
sure sreeja we will create soon
the video is very usefull . at 3.40 you interchangeably used implements and extends keyword . if possible correct that .
Thank you. Keep it up.
You're welcome ankush