in Design Patterns by
Q:

Name some of the design patterns which are used in JDK library.

▼ Show 1 Answer

0 votes
by

Following are some of the design patterns which are used in JDK library.

  • Decorator patttern is used by Wrapper classes.

  • Singleton pattern is used by Runtime, Calendar classes.

  • Factory pattern is used by Wrapper class like Integer.valueOf.

  • Observer pattern is used by event handling frameworks like swing, awt.

Learn More with Madanswer

Related questions

0 votes
asked Oct 17, 2019 in Design Patterns by Robin
...