BNP Paribas interview question

Basic Java questions on OOPS concept.