Interview question:
What is difference between collection and collections?
Collection is an interface which can be used for representing a group of individual objects as single entity,where as collections is an utility class to provide several utility methods (like sorting ,searching etc) to collection objects.
But both collection & collections are available in java .util package only
Collection is an interface which can be used for representing a group of individual objects as single entity,where as collections is an utility class to provide several utility methods (like sorting ,searching etc) to collection objects.
But both collection & collections are available in java .util package only
No comments:
Post a Comment