permaculture playing cards*
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Wrappers with String and Collections Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Wrappers with String and Collections" Watch "Wrappers with String and Collections" New topic

Wrappers with String and Collections

Sekhar Choudary
Ranch Hand

Joined: May 03, 2008
Posts: 57

I am getting the size as 3
Can anyone expalin this.
Henry Wong

Joined: Sep 28, 2004
Posts: 18488

To understand why this is so, you need to understand hashing. And since you asked about hashing here...

I think it is best if you undertand that first.


Books: Java Threads, 3rd Edition, Jini in a Nutshell, and Java Gems (contributor)
I agree. Here's the link:
subject: Wrappers with String and Collections
Similar Threads
I am finding hashing a bit confusing please it in a bit detail
Hashcodes in hashset
HashSet Duplicate element ?