Yes, some of the exam question are fooling us with methods that in the first place are looking like a constructor but aren't.
So set it in bold type:
constructors don't have a return type.
Something else, "Naveen KumarBS":
There aren't many rules to follow on the ranch, but one is about the use of propper display names.
Your name does not follow this rule. The main reasons why and a link how to change yours you'll find here:
http://www.javaranch.com/name.jsp So, could you please change your user name before your next posting?
It will not affect anything you've already posted here. Just your user name will update.
I'm writing this because I am one of the moderators of this forum.
Yours,
Bu.