Replace comments with currect code to print required output - Java Quiz Question


Which of the following option can be inserted in the place of comment, so that the output is 2.


A
check.tailSet(3)
B
check.headSet(5)
C
check.pollLast()
D
check.lower(8)