actually i didn't read properly raju;s reply
i just matched the ans keys!
but Neha's explanation is 100% right!
Answer explanation in book:
--
The methods labeled (1) and (3) will not compile, since the non-final parameter i
is not accessible from within the inner class. The syntax of the anonymous class in
the method labeled (2) is not correct, as the parameter list is missing.