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

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

  1. remove()

  2. element()

  3. Pop()

  4. poll()

  5. exit()

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

 pop() method returns and removes the top element of stack.

Keep practicing — related questions

  • What does the Object peek() method of Stack class in java collection framework do?
  • Which of the following methods in stack class java returns the element on the top of the stack, but does no...
  • 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 of Stack class is used to search for an element in the stack?
  • Which of the following methods is/are not present in Vector class in Java Collections framework?
  • Which of the following methods is not present in Vector class in Java collections framework?
  • Which of the following is/are not the method(s) of the Iterator interface in collection 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