Pergunta de entrevista da empresa Cognizant

What are inner classes? When they should be used?