intermediateCreational Patterns (Java)

What is the Abstract Factory pattern? Give a real-world Java example.

Tests whether you know how to produce families of related objects without specifying their concrete classes.

This is a Pro question

Sign in, then upgrade to Pro or Power to unlock this question and the full Interview Prep bank.

What is the Abstract Factory pattern? Give a real-world Java example.

Next Step

Continue to Proxy pattern vs Decorator pattern — both wrap an object, so what's the real difference in intent?← Back to all Design Patterns & LLD questions