About Question enthuware.ocpjp.v7.2.1585 :
Posted: Sun Dec 11, 2016 2:35 pm
how does that work?It allows null value to be stored.
Java Certification Resources and Java Discussion Forum
https://enthuware.com/forum/
how does that work?It allows null value to be stored.
Code: Select all
HashSet hs = new HashSet();
hs.add(null);
System.out.println(hs);
Code: Select all
[null]