aliensbrain
  • Home
  • Study
  • Quizzes
  • 🎤AI Practicefree
  • Notebooks
  • Community
  • Sign in
  • Core Java-2
  • Which of the following is/are not the method(s) of the It...
Multiple choice

Which of the following is/are not the method(s) of the Iterator interface in collection framework?

  1. object next( )

  2. boolean hasNext( )

  3. void remove( )

  4. boolean hasPrevious( )

  5. Both (3) and (4)

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

This is the method of ListIterator interface and returns true if there is a previous element. Otherwise, it returns false.

Keep practicing — related questions

  • Which of the following methods is not defined in Set interface java collection framework?
  • Which of following methods are present in the Collection Interface in Java?
  • Which of the following methods of ListIterator class throws NoSuchElementFoundException in java collection ...
  • Which of the following statements are true? 1. The Iterator interface declares only three methods: hasNext,...
  • Which of the following methods of the Set interface returns the number of elements in the java collection f...
  • Which of the following methods is present in ListIterator interface in Java collections?
  • Which of the following methods is present in ListIterator interface in Java Collections?
  • Which of the following is not a method of the Vector class in java collection framework?
Play the full quiz 🎤 Practise this topic out loud

Practice this topic

  • Data Structures and Algorithms (1518 questions)
Advertisement
© Aliensbrain | all rights reserved
  • About
  • Contact
  • Terms and Condition
  • Privacy Policy