Nokia interview question

java oops concepts