• Home
  • Recent Q&A
  • Java
  • Cloud
  • JavaScript
  • Python
  • SQL
  • PHP
  • HTML
  • C++
  • Data Science
  • DBMS
  • Devops
  • Hadoop
  • Machine Learning
in Design Patterns by
Q:

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

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.

Related questions

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