in Design Patterns by
Can you name few design patterns used in standard JDK library?

► Click here to show 1 Answer

0 votes
Decorator design pattern which is used in various Java IO classes, Singleton pattern which is used in Runtime , Calendar and various other classes, Factory pattern which is used along with various Immutable classes likes Boolean e.g. Boolean.valueOf and Observer pattern which is used in Swing and many event listener frameworks.
Learn More with Madanswer

Related questions

0 votes
asked Aug 12, 2020 in Design Patterns by RShastri