What is the difference between these two declarations. I was looking at samples online and I see samples with declaration #1 below.
Why can't I declare like #2 below? What is the difference between those 2 declarations?
1. SortedSet<
String> aSortedSet = new TreeSet<String>() ;
2. TreeSet<String> aTreeset = new TreeSet<String>();
Thanks
nath