Zend certified PHP/Magento developer

In linked lists, what happens when an item is deleted? [closed]

  1. References must be deleted from the target item
  2. Both references and data from the target item must be deleted
  3. The reference that sends to that element from the previous element
    must be deleted
  4. Java garbage collector takes care of the deleted element

These are the options to the question and I have to choose which one is correct. For all I know, number 3 is correct, but I haven’t heard of Java Garbage Collector in relation to Linked Lists.