Cognizant Interview Question

What are inner classes? When they should be used?