What is the difference between a treeset and hashset in Java?
In a treeset data are placed in order
In a hashset data are placed in order
Both are same
None of the above