Pregunta de entrevista de Oracle

Basic java programming questions. couple logical questions