Deloitte Interview Question

Each and every point in java