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("O");
object.add("V");
object.add("E");
object.addFirst("L");
System.out.println(object);
}
}

A. [L]
B. [L, O]
C. [L, O, V]
D. [L, O, V, E]
E. None of these
Answer» E. None of these


Discussion

No Comment Found

Related MCQs