File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
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: 20535

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
It's not a secret anymore!