I always learn when we declare a collection we should do, Interface ob = new Class(), if i want to use for example a LinkedList i\'ll do List ob = new LinkedL
Interface ob = new Class()
List ob = new LinkedL
Not exactly 100% correct.
A preferred way to declare any collection is to include the data type it's holding. So, for your example, it'd be LinkedList ob = new LinkedList();.
LinkedList ob = new LinkedList();