posted 22 years ago
Hi Nishesh,
You can safely assume the question to be non-static inner class
and in that case the answer is : choice (1),(2),(3) .
I am not clear about the choice (4)
You can verify the answer with the following code.
On the other hand if the question is static inner then the rules of static modifier applies, viz., the inner classs CAN access ONLY, the static variables and final static variables ONLY.
You can refer the following code.
Hope this clears your doubt.
Ravindra Mohan.