Oracle Interview Question

Basic java programming questions. couple logical questions