Data structures in Java Self-Referential classes. Dynamic memory allocation Linked List Sockets Queues Trees
Self-Referential classes. A self referential class contains a reference member that refers to a class object of same class type. class Node { private int data; private Node next; Node(int d){//method body} void setData(int d) {//method body} void getData() {//method body} void setNext(Node nextNode) {//method body} void getNext() {//method body} }