PC Technology interview question

Java basics