Hi!
Options are:
1 0
2 1
3 2
4 3
5 4
I answered three, but the correct ans is zero. yy?
plz explain. Wht i understand is when u pass objects, u r passing a reference to the original object. so, when u pass x to the method findOut, this method sets x = null and hence, it becomes eligible for garbage collection. Am i wrong or is there any other way to look at this?
(code tags added - pseudo english
not corrected)
[ November 10, 2004: Message edited by: Barry Gaunt ]