This week's book giveaway is in the Mac OS forum. We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line! See this thread for details.
Hi Ranchers, Please consider the following code....
This is a question from WhizLabs. Question:How many objects will be eligible for garbage collection before System.gc() is executed?
The given answer is 3.
I thought it was none since we only pass a reference of array object to the method f(array)and also since array variable in f() method is local to that method, it doesnt affect the array var in the main method.