What is the higher() method of the NavigableSet interface?
Are you preparing for IT certification? With practice questions, study notes, interactive quizzes, tips and technical articles, uCertify PrepKits ensure that you get a solid grasp of core technical concepts to ace your certification exam in first attempt.
What is the higher() method of the NavigableSet interface?
Rating:
The higher() method of the NavigableSet interface returns the smallest element of the set that is strictly greater than the element in the method parameter. However, if there is no such element, this method returns a null value. The higher() method throws the ClassCastException if the specified element cannot be compared with the elements currently in the set. It throws the NullPointerException if the specified element is null and the given set does not permit null elements.
Rating:
Was this information helpful?
Other articles
- What is the pollFirstEntry() method of the NavigableMap interface?
- What is the BufferedReader class?
- What is the ceilingKey(k) method of the NavigableMap interface?
- What is constructor overloading?
- What is the subMap() method of the NavigableMap interface?