What will be the output generated by the following program?
class LinkedListAddDelp { Node head; // Create a node class Node { int data; Node next; Node(int d) { data = d; next = null; } } // Insert at the beginning public void insertAtBeginning(int new_data) { // insert the data Node new_node = new Node(new_data); new_node.next = head; head = new_node; } // Delete a node void deleteNode() { if (head == null) return; Node temp = head; head = head.next; } // Print the linked list public void printList() { System.out.println(); Node tnode = head; while (tnode != null) { System.out.print(tnode.data + " "); tnode = tnode.next; } } public static void main(String[] args) { LinkedListAddDelp llist = new LinkedListAddDelp(); // llist.insertAtEnd(1); llist.insertAtBeginning(2); llist.insertAtBeginning(3); llist.insertAtBeginning(5); // System.out.println("Linked list: "); // llist.printList(); llist.deleteNode(); // llist.printList(); llist.insertAtBeginning(8); llist.printList(); } }