- How Many Singly Linked Node Objects Could The Java Virtual Machine Mark As Garbage After All The Following Statements 1 (52.36 KiB) Viewed 22 times
How many singly-linked Node objects could the Java Virtual Machine mark as "garbage" after all the following statements
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am
How many singly-linked Node objects could the Java Virtual Machine mark as "garbage" after all the following statements
How many singly-linked Node objects could the Java Virtual Machine mark as "garbage" after all the following statements have executed? A. 2 B. 3 C. 4 D. 5 Node n = null; n = new Node ("T"); n.next = new Node ("I", new Node ("G")); Node m n. next.next; m.next = new Node ("E", new Node ("R")); n = null;