What actually happens when we do newlink.next? Don't tell me it goes to next node .Check my class and description below : <pre><code>class Link
{
    int data;
    Link next;
    Link(int data)
    {
        this.data=data;
    }

    public String toString()
    {
        return "{"+data+"}";
    }
}
class MyLinkList
{
    Link first;
    MyLinkList()
    {
        first=null; // list is empty
    }

    void insertFirst(int data)
    {
        Link newlink=new Link(data);
        newlink.next=first;
        first=newlink;
    }

    public String toString()
    {
        String str="";
        Link current=first;
        while(current!=null)
        {
            str=str+ current.toString();
            current=current.next;
        }

        return str;
    }
}
public class SinglyLinkedList {

    public static void main(String[] args) 
    {
        MyLinkList list=new MyLinkList();
        list.insertFirst(52);
        list.insertFirst(78);

        System.out.println(list);

    }

}
</code></pre>

<p>/*
This is My Linked List class which I made using java. We all know there are nodes and we traverse it. But one thing I didn't get it.
Link next is used 
Link first is used and we use newlink.next=first; Refer to function insertFirst()</p>

<p>How is it actually working ? 
next,newlink,first are class Link references. 
What actually happens inside when we do newlink.next or first.next ?</p>

<p>What are nodes? Are they objects or references or what ? </p>

<p>*/</p>
