-1

if java has provided the LinkedList class that would make your life a lot easier ... what would be a good reason for a developer not to use the provided LinkedLIst and build own LinkedList from scratch

1 Answers1

1

LinkedList implementation in Java is a Doubly-linked list. So it will take more memory space than Singly linked list. So, if your application is too much memory critical then you can think to implement a Singly linked list implementation. However, some operation in a Doubly-linked list is faster than a single linked list, you need to keep in mind the performance aspect also.

Amit Bera
  • 7,075
  • 1
  • 19
  • 42