IDFC FIRST Bank interview question

Questions about java because the requirements were about java