Collections It is an utility class present in java.util package. It defines several utility methods for collection implemented class object. Sorting a list public static void sort(List l), to sort the elements of List, according to natural sorting order. In this case compulsory Objects should be Homogeneous & comparable otherwise we will get ClassCastException. The […]
Day: January 16, 2019
Enhancement 1.6 version
Enhancement Sun people introduces, the following 2 interface in 1.6 version as the part of collection Framework. 1) NavigableSet 2) NavigableMap. NavigableSet It is the child interface of SortedSet, which defines several methods to support navigation. Ceiling(e): It returns the lowest element, which is greater than equal to e. Higher(e): Returns the lowest element which […]
Queue 1.5 version
Queue This interface has introduced in 1.5 version. If we want to represent, group of Objects Prior to processing, then we should go for Queue. In general Queue follow FIFO, but we can customize based on our requirement. *image* From 1.5 version on wards linkedList also implement Queue interface. LinkedList implementation of Queue always follows […]