Domanda di colloquio di AppDynamics

What is singleton and how does it work? Why use singleton instead of static class?