Oracle interview question

Mostly on basic java programs with less complexity