But then what about array = null in the method ??
Maybe that is why array = null doesnt make any sense b'coz there is one MyClass object there.
As said above, you cannot null an object via a method parameter reference. Only the reference (anotherPointArray in Example2) will no longer point to pointArray from the main method, but it points to null then.
If you try to please everybody, your progress is limited by the noisiest fool. And this tiny ad:
Free, earth friendly heat - from the CodeRanch trailbosshttps://www.kickstarter.com/projects/paulwheaton/free-heat