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.
Get certified in first attempt download scjp-5-0 - SCJP 5/6 simulation. Download free practice test for CX310-065 SCJP 6.0 exam.
Like this article? Share it with others
If you like this article, please leave a comment or subscribe this blog via RSS or via e-mail, Bookmark and share through your network. Click the AddThis button below. Thanks.
If you like this article, please leave a comment or subscribe this blog via RSS or via e-mail, Bookmark and share through your network. Click the AddThis button below. Thanks.
