Home » JAVA Programming » Collections » Question
  1. Which of these return type of hasNext() method of an iterator?
    1. Double
    2. Integer
    3. Collections Object
    4. Boolean
    5. None of these
Correct Option: D

hasNext() returns boolean values true or false.



Your comments will be displayed only after manual approval.