Java OCA OCP Practice Question 2084

Question

Which interfaces does Properties implement?.

  • I. Hashtable
  • II. HashMap
  • III. Map
  • A. III
  • B. I and II
  • C. I and III
  • D. II and III


A.

Note

The Properties class is a Map, making III correct.

Hashtable and HashMap are concrete classes rather than interfaces, so I and II are incorrect.

While a Properties object is a Hashtable, this is not an interface.

Since only III is correct, Option A is the answer.




PreviousNext

Related