I am using LinkedHashSet for storing elements. Here is the sample code
Set<String> s = new LinkedHashSet<String> ();
s.add("B");
s.add("C");
s.add("F");
May I know if the order is going to be preserved as my reference is of type Set but object is of type LinkedHashSet?