I have the following collection of objects:
Set<MyClass> test = new LinkedHashSet<MyClass>();
but MyClass does not override the hashcode and equals methods.
Can have the above collection only unique objects even the MyClass does not override the hashCode and equals methods?