☑Kizspy.me
(Choose 1 answer)
☐ A
☐ B
Select the statement that is most correct.
Suppose we are considering a singly linked list which is not empty. What does the java code snippet below do?
Node q = new Node(x);
q.next = null;
tail = q
A. It inserts new node with value x at the tail of the list.
B. It inserts new node with value x before the tail node of the list.
FUO.sh
sh the exam.