My Java Quiz

The ultimate place to learn Java!

Question #74: What is the output of the following code?

List p = new ArrayList();
p.add(7);
p.add(1);
p.add(5);
p.add(1);
p.remove(1);
System.out.println(p);