-
What is the output of this program?
import java.util.*;
public class Linkedlist_Example
{
public static void main(String args[])
{
LinkedList object = new LinkedList();
object.add("I");
object.add("L");
object.add("U");
object.removeFirst();
System.out.println(object);
}
}
-
- [I, L, U]
- [I, L]
- [L, U]
- [I, U]
- None of these
Correct Option: C
[L, U]