posted 7 years ago
Yes sure, an object is created, referenced to null but in the LinkedList class, it is given so what actually happens here ? Does the object takes all its values of next node and store it ? Where does the previous node's data go into, is it overwritten - mean how is memory allocation taking place ? Sorry if I am not able to clearly present my actual query here.