aliensbrain
  • Home
  • Study
  • Quizzes
  • 🎤AI Practicefree
  • Notebooks
  • Community
  • Sign in
  • Java Programming and JSP Fundamentals
  • Which of the following methods of Map interface throw(s) ...
Multiple choice

Which of the following methods of Map interface throw(s) NullPointerException in Java?

  1. public boolean containsValue(Object value)

  2. public boolean containsValue(Object key)

  3. boolean isEmpty()

  4. both (1) and (2)

  5. none of the above

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

Yes, these method throw NullPointerException.

Keep practicing — related questions

  • 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 methods is present in map interface in java collections 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 is present in Map interface in Java collections framework?
  • Which of the following methods is not present in Map interface?
  • Which of the following methods are not present in Map interface?
  • Which of the following methods, declared by Map interface, returns a Set that contains the entries in the M...
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