posted 7 years ago
They are often used in swing but also in the Collection classes (Iterators). To quote from K&B:
From instance event handlers or iterators.
Sometimes, though, you find yourself designing a class where you discover you need behaviour that belongs in a separate, specialized class, but also needs to be intimately tied to the class you're designing