aliensbrain
  • Home
  • Study
  • Quizzes
  • 🎤AI Practicefree
  • Notebooks
  • Community
  • Sign in
  • MAP Java (GATE - CS)
  • Which of the following methods is present in Map interfac...
Multiple choice

Which of the following methods is present in Map interface in Java collections framework?

  1. getKey()

  2. getValue()

  3. setValue(Value : V)

  4. keyset()

  5. getKeys()

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

This is the correct choice. Keyset() method is present in the Map interface and it returns a set consisting of the keys in this map. 

Keep practicing — related questions

  • Which of the following methods is present in Map interface in Java collections framework?
  • Which of the following methods is present in map interface in java collections framework?
  • Which of the following methods is not present in the map interface in java collections framework?
  • Which of the following methods is not present in the Map interface in Java collections framework?
  • Which of the following is not an interface in java collection framework?
  • Which of the following methods of the Map interface is used to search the specified key form this map?
  • Which of the following methods, declared by Map interface, returns a Set that contains the entries in the M...
  • Which of the following methods is not present in Map interface?
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