This week's book giveaway is in the OCPJP forum. We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line! See this thread for details.
Originally posted by ramesh subramani: After making array=null all its elements hold null, so the answer should be 4??
[ August 22, 2006: Message edited by: ramesh subramani ]
No, because the variable array being set to null is the local variable in method m. The varable array in method main still holds a reference to the array. [ August 22, 2006: Message edited by: Barry Gaunt ]