HSBC interview question

Core Java Concepts