Oracle interview question

Explain Factory, Singleton design patterns?