What are the examples of Abstract Factory design pattern in JDK?

In JDK there are many places where Abstract Factory design pattern is used. Some of these are as follows:

<li>javax.xml.xpath.XPathFactory.newInstance()</li>


<li>javax.xml.parsers.DocumentBuilderFactory.newInstance()</li>


<li>javax.xml.transform.TransformerFactory.newInstance()</li>
Read the full book at www.amazon.com
Posted in Design Pattern, Design Pattern Interview Questions

Leave a Reply

Your email address will not be published. Required fields are marked *

*