Which of these method is used to add an element to the start of a LinkedList object?
(a) add()
(b) first()
(c) AddFirst()
(d) addFirst()
I had been asked this question during an interview for a job.
Enquiry is from Java.util topic in chapter java.util – The Collections Framework of Java