IBM Interview Question

What is wrong in this code snippet? and some technical questions on OOPs