Example of Decorator pattern in Java API?

  1. java.util.List

  2. java.lang.String

  3. java.io.BufferedInputStream.

  4. None of the above.


Correct Option: C

Find more quizzes: