I was going through abstract factory design pattern below is the UML diagram for that..

please suggest me the best examples for this paatern as I have tried best but I am in search of that example that is easy to learn and want to make my understanding for abstract factory pattern 100% clear.Please advise
Have you looked at DocumentBuilderFactory class that’s built into the JDK? It does exactly this, with it’s target item being a Document object.
The jdk has the DocumentBuilderFactory class, which uses a service locator strategy to find a a concrete implementation of the DocumentBuilderFactory class (ie. xerces or some other parser).
java.awt.Toolkit is another great example of this. This time, it uses the JVM implementation itself to provide the instance:
The actual concrete class is different based on what OS you’re on, and whether you’re running in headless mode or not.