Is it possible to create an collection , which can be only read-only & unmodifiable so that others wouldn't be able to modify it.
Set s=new HashSet();
s.add("Sai");
s.add("jothish");
If i want to make this collection read-only how to achieve it?
Any help is appreciated.
Regards.