File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
Author

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.
Thanks
Henry Wong
author
Sheriff

Joined: Sep 28, 2004
Posts: 18896
    
  40

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

http://www.coderanch.com/t/269877/java-programmer-SCJP/certification/Help-hashcodes

I think it is best if you undertand that first.

Henry


Books: Java Threads, 3rd Edition, Jini in a Nutshell, and Java Gems (contributor)
 
wood burning stoves
 
subject: Wrappers with String and Collections