aspose file tools
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes HashSet will allow null values? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Reply Bookmark "HashSet will allow null values?" Watch "HashSet will allow null values?" New topic
Author

HashSet will allow null values?

Sakthivel Sabapathy
Greenhorn

Joined: Oct 20, 2000
Posts: 4
Can anyone explain me whether HashSet will allow null value or not?
Because in Jamie Jaworski book described as
"It does not allow the use of null element".
anrup kris
Greenhorn

Joined: Oct 22, 2000
Posts: 17
I read in the API that HashSet permits null values,where as the class HashTable implements a hashtable and maps keys to values.So it does not permit null values
regards
kris
Sakthivel Sabapathy
Greenhorn

Joined: Oct 20, 2000
Posts: 4
So that means Jamie Jaworskie book that specified statement is wrong. Am i right?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: HashSet will allow null values?
 
Similar Threads
null values of collections
Question About TreeSet?
about Hashset
Duplicates in Collections-Confused!!
Hashset, Hashtable and Hashmap