GE interview question

Java related questions + some programming questions