aliensbrain
  • Home
  • Study
  • Quizzes
  • 🎤AI Practicefree
  • Notebooks
  • Community
  • Sign in
  • Java Collections and GUI (GATE)
  • Which of the following methods is present in LinkedList c...
Multiple choice

Which of the following methods is present in LinkedList class in Java collections?

  1. addFirst()

  2. setFirst()

  3. setLast()

  4. indexOf(e:Element)

  5. lastIndexOf(e:element)

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

addFirst() method is used to add element to the head of the list.

Keep practicing — related questions

  • Which of the following is NOT a method of the 'Linked List' class?
  • In Java, which of the following is implemented by extending AbstractSequentialList class?
  • Which of the following methods is present in Vector class in Java collections framework?
  • Which of the following methods is present in Vector class in Java Collections framework?
  • 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?
  • You are planning to do an indexed search in a list of objects. Which of the two Java collections should you...
  • Which of the following methods is/are not present in Vector class in Java Collections framework?
Play the full quiz 🎤 Practise this topic out loud

Practice this topic

  • Java Core Classes and Threads (1473 questions)
Advertisement
© Aliensbrain | all rights reserved
  • About
  • Contact
  • Terms and Condition
  • Privacy Policy