(Choose 1 answer)
Select the statement that is most correct.
Suppose we are considering a doubly linked list and p is some node in the list which has successor node.
What does the java code snippet below do?
Node p1,p2; p1 = p.next;
p2 = p1.next;
p.next = p2;
if(p2!=null) p2.prev=p;
A. It does not make any change on the list.
B. It deletes the node before p.
C. It deletes the node p.
D. It deletes the node after p.
4