LinkedList link=new LinkedList(); link.add(10); link.add(20); link.add(30); link.add(2, 25); System.out.println("The contents of array is" + link); What is output of linkedList in java?
a.The contents of array is[10, 20, 30, 25]
b.The contents of array is[10, 25, 20, 30]
c. The contents of array is[10, 20, 2, 25, 30]
d.The contents of array is[10, 20, 25, 30]