Bank of America interview question

Core java concepts and oops concepts