I am using Java to Program Linked List.
In order to delete a node from linkedList, I am just pointing to the next pointer
For Ex: 3->4->5 is my linked list. Now I am deleting 4 so it will be like 3->5 and link to 4 will be deleted.
But in C++ there will be free() command to delete the memory space occupied by 4.
Will this memory space be made free in Java?