This week's book giveaway is in the OCAJP forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide 1Z0-808 and have Jeanne Boyarsky & Scott Selikoff on-line! See this thread for details.
Originally posted by tay edmen: Hi all, above is one of my revision question.
Howdy Tay. There is a rule at javaranch that you have to tell the source of the question i.e. from where you copied the question. So please tell from where you copied this code. Then only we will be able to solve your problem. I hope you will understand this..
Welcome to JavaRanch. As Ankit already said, we have a rule here: when you copy a question from a book, mock exam or other source, we require that you quote your sources. So, please tell us where you copied the question from.