Pregunta de entrevista de Cognizant

What are inner classes? When they should be used?