Capgemini interview question

Simple questions about Java Core, Logical reasoning