1.

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);
}
}

A. [I, L, U]
B. [I, L]
C. [L, U]
D. [I, U]
E. None of these
Answer» D. [I, U]


Discussion

No Comment Found

Related MCQs