Java Interview Shorts 3 - What is an Entry object ? || Java collections #javainterviewquestions

preview_player
Показать описание
Java Interview Shorts 3 - What is an Entry object ? Java collections framework interview questions

In this video we will learn about Entry object in java. Entry is a nested interface present inside a java Map interface. Inside a map , we store key and value pair but we don’t store them directly. We store entry object inside a map (like Hashmap or treemap) which is a wrapper for the key and value objects.

The entry object can be accessed using Map.Entry as it is a nested interface.To access all the entries of a map objects use the entrySet() method and then use the getKey and getValue methods to access a specific entry’s key and value.

#javainterviewquestions #javainterview #javacollections

For more free/paid courses visit

#JavaInterview #SpringBootInterviewQuestions #MicroservicesInterviewQuestions

For More free/paid courses visit

LINKS AND FREE LEARNING RESOURCES
========
Watch my new mock interview series for java developers

Watch my new Hello spring boot series

Watch Spring boot Hot topics

Java Interview / Question and Answer series

Explain spring Bean Lifecycle

spring core

spring mvc

spring mvc intermediate

Spring JDBC

spring live project

SPRING SECURITY COURSE[NEW]

For more courses visit

Any time you are getting stuck with issues, Feel free to ask for support.

you can ping me on my Facebook page

Make sure to join my private Facebook page (Ask me here)
“SeleniumExpress - Support"

you can ask for support in my website forum

Subscribe to my youtube channel

Follow me on Insta
Рекомендации по теме
Комментарии
Автор

Please keep it up, very useful for freshers

abhishekverma
Автор

Your explanation is really really helpful to understand complex concept as well, straight forward explanation without any confusion. Thank you

ashishsharma
Автор

Very nice.. Please keep like this Avilash 🙏

dolonroy-ce
Автор

Great explanation..
One question that I faced during the interview was how to iterate a Map using Stream Api.
I mentioned using EntrySet collection and then converting it to stream..
I'm not sure if we have a better solution.

jayakumarsivasankar
Автор

I remember Entry and entrySet from for each loop to iterate over map

HR-pzts
Автор

My question is why is the entryset better than iterating over the Keyset and then grabbing the values that way?

franchello
Автор

Nice explanation. But how can we create an object of an interface. So is it wrong to say entry as an object ?

ashutoshsingh-uhio