aliensbrain
  • Home
  • Study
  • Quizzes
  • 🎤AI Practicefree
  • Notebooks
  • Community
  • Sign in
  • Java Fundamentals and Legacy APIs
  • Which of the following methods of Stack class is used to ...
Multiple choice

Which of the following methods of Stack class is used to search for an element in the stack?

  1. peek()

  2. pop()

  3. push()

  4. search()

  5. empty()

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

This method of Stack class is used to search for an element in the Stack.

Keep practicing — related questions

  • Which of the following methods in stack class java returns the element on the top of the stack, but does no...
  • What does the Object peek() method of Stack class in java collection framework do?
  • Which of the following operations of stack needs parameter in its method?
  • Which of following stack operation returns a Boolean value?
  • Which of the following methods is present in the Stack class in Java collections framework?
  • Which of the following methods is present in the Stack class in Java Collections framework?
  • Which of the following is not a stack operation?
  • Which of the following is the operation in which a new data or element is inserted into the stacks?
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