Q127
What is the functionality of the following piece of code? public void display() if(size == 0) System.out.println("underflow"); else Node current = first; while(current != null) System.out.println(current.getEle()); current = current.getNext();
A.
reverse the list
B.
display the list
AnswerC.
display the list excluding top-of-the-stack-element
D.
reverse the list excluding top-of-the-stack-element
Answer: Option B
Solution
Answer: Option B
No explanation is given for this question Let's Discuss on Board