aliensbrain
  • Home
  • Study
  • Quizzes
  • 🎤AI Practicefree
  • Notebooks
  • Community
  • Sign in
  • Basics of Computer Languages
  • Which of the following method of the HashMap returns the ...
Multiple choice

Which of the following method of the HashMap returns the number of number of key-value mappings in the map?

  1. Set entrySet()

  2. Set keySet()

  3. int size()

  4. boolean isEmpty()

  5. None of the above

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

This method is used to return the number of key-value mappings in this map.

Keep practicing — related questions

  • Which of the following methods of the Map interface is used to search the specified key form this map?
  • Which of the following methods in Map.Entry interface in Java returns the value for the map entry?
  • Which of the following methods, declared by Map interface, returns a Set that contains the entries in the M...
  • What does entrySet() method in the Map class in java collection framework do?
  • 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?
  • The _________ method of Map class is used to return 'true' value if the invoking map contains 'k' as a key,...
  • 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