Multiple choice

The _________ method of Map class is used to return 'true' value if the invoking map contains 'k' as a key, which is passed as argument with the method.

  1. containsKey()

  2. clear()

  3. runFinalization()

  4. gc()

  5. freeMemory()

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

This method of Map class returns 'true' value if the invoking map contains 'k' as a key, which is passed as argument with the method.