Question: 2. Once again using the IntNode class, consider the following three lines of code IntNode head- new lntNode(4.new IntNode(7.new IntNode(5 new IntNode(3.null)) IntNode ptr head.getLinkO

2. Once again using the IntNode class, consider the following three lines of code IntNode head- new lntNode(4.new IntNode(7.new IntNode(5 new IntNode(3.null)) IntNode ptr head.getLinkO getLink0 head.getLinkO.setLink( new IntNode(22, null)); to include what data is in each node. (b) Draw a picture of Java's memory after the first and second lines above have been executed (c) Draw a picture of Java's memory after all three lines above have been executed
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
