Cognizant Interview Question

Very basic java definitions.