Multiple choice

Which of the following methods of Method class returns true value if the object argument is an element of the invoking collection?

  1. add()

  2. clear()

  3. contains()

  4. equals()

  5. hashCode()

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

This method of Methods class returns true value if the object argument is an element of the invoking collection.