I've came across with the next code lines, which are part of the implementation of a Node class :
public class Node {
private String data;
private Node next;
I wonder how is it possible to use private Node next;
as a field of Node ? How come this 'self-instance' is legal and how does it work ?
I'll be grateful if anyone could explain this.