In question 1 of OCP Exam 2 one of the sentences to gauge whether there is invalidity or validity states, "If Object X has a reference to Object Y, then Object Y cannot be GCed". I am always confused with garbage-collection because these can not be verified with System.out.println statements.
Does this mean that a reference can point to both ObjectX and Object Y at the same time? Why isnt , "If Object X has a reference to Object Y, then Object Y cannot be GCed" a true statement?
Respectfully,
Ted North - technical skills champion - people skills be damned