DISH interview question

Core java concepts