0 votes
in Education by (55.6k points)

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

1 Answer

0 votes
by (55.6k points)

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

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
1 answer
0 votes
1 answer
0 votes
1 answer
asked Nov 7, 2020 in Education by Editorial Staff (55.6k points)
0 votes
1 answer
...