Node type explanation

So are we making a Node object of head and tail?

@devanshsood2000_b7de8cac3ff0472d Can you explain your question a little bit more?

public class LinkedList { class Node{ int val; Node next; public Node(int val) { // TODO Auto-generated constructor stub this.val = val; } } Node head; Node tail;

@still not able to get your question.

just wanted to understand what is meant by Node head and Node tail, are we making it into an object, or are we converting it into some Node type?

@devanshsood2000_b7de8cac3ff0472d we are making it into an object and they are object itself. In simple terms Node will be used whenever we create and object of it and since it is LL it’ll have head and tail also as object.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.