Deloitte interview question

Each and every point in java