OD
(Choose 1 answer)
Suppose we are considering a singly linked list and p is some node in the list which has suc Select the most correct java code snippet that deletes the successor node of p (the node aft
A. Node q = p.next;
q.next = p.next.next;
B. p = p.next;p.next = null;
C. Node q = p.next;
p.next = q.next;
D. p.next= null;
40