Back

Sidharth s

Restarting -loop-beg... • 9m

Ever thought how hashmaps work internally in java ,, lets understand So in java , array of LinkedLists is used to implement hashmap. for example when we write HashMaphmap=new HashMap<>(); hmap.put("sss",1); when we intialize a hashmap a array of linkedlist is created of size 16 where each index of that array represents a linkedlist. Now when we put the value inside it , it takes the key and generates a hash value , then that hash value is converted to a index number by doing '&' operation with the length of the array After that the data is stored at that index , as a node of linkedlist , SO the what data that node stores ?? (1)hashed value (2)key (3)value (4)next

3 Replies
2
8
Replies (3)

More like this

Recommendations from Medial

Comet

#freelancer • 1y

Master the Magic of HashMap in Java! Curious about how HashMap works behind the scenes? 🤔 Learn about hashing, buckets, and collision handling to boost your Java skills and optimize your applications for peak performance. Ready to dive in? Expl

See More
2 Replies
9

Arihant Jain

Crafting Impactful A... • 2m

🧠 Programming Challenge of the Day Can you solve this? You're given an integer array (with both positive and negative values). Each element in the array represents the number of stars (*) to be printed vertically in its column: 🔹 Positive values

See More
Reply
2
3

Atharva Deshmukh

Daily Learnings... • 1y

The Stock Market Index When we want to know about the trends in the market, we need to analyze few of the important companies in each industry. The important companies are pre-packaged and continuously monitored to give you this information. This pr

See More
Reply
7
Image Description
Image Description

Dileep Kadiveti

IoT Student with a C... • 1y

[This post has been deleted by the creator]

2 Replies
4
Image Description
Image Description

Aryan patil

Intern at YourStory ... • 1y

SEBI warned ⚠️ investors about Stock market bubble is about to burst anytime soon 📉 because The price-to-book (P/B) ratio of the Nifty Midcap 150 index is 4.26, and the Nifty Midcap 50 index has a P/B ratio of 3.64 This Means valuations of the Mid/s

See More
3 Replies
8

Aryan Nagori

 • 

Siddhrans Technologies • 1m

Today's "aha!" moment from my Advanced Java course! 💡 I always associated polymorphism with core OOP features, but today I learned that constructors in Java are not polymorphic. The reason is simple: polymorphism depends on method overriding, and

See More
Reply
1

Deep

Karma is supreme • 6m

Stock Market: If small cap index closes above yesterday's high then that will be sign of reversal or consolidation. No more brutal selling for few days.

Reply
9
Image Description

Rohan Saha

Founder - Burn Inves... • 3m

You know that feeling when you sell a stock, an index, or even gold, lock in some profits, and then it actually starts falling? In that moment, it genuinely feels like I’m the one pulling the strings like I secretly run the whole market 😂

1 Reply
6

Yashab alam

Founder ZehraSec • 3m

💀 Still waiting… and waiting… and waiting… That Java update really said: “I’ll finish when I feel like it.” ☕🐢 By the time it’s done, we’ll all be skeletons. Tag someone who’s still stuck on "Installing..." 😂

Reply
5

Download the medial app to read full posts, comements and news.