File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Q on Jxam Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Q on Jxam" Watch "Q on Jxam" New topic

Q on Jxam

Barkat Mardhani
Ranch Hand

Joined: Aug 05, 2002
Posts: 787
Q: Choose the class that can hold multiple equal objects in an ordered way.
options: Map, Collection, List, Set, Vector
The given answer is List. I believe answer should be Vector as question is asking for a class not interface. List is an interface that is implemented in Vector class.
Corey McGlone
Ranch Hand

Joined: Dec 20, 2001
Posts: 3271
As the question is worded, you are correct. The question asked for a class so List shouldn't be a valid answer.

SCJP Tipline, etc.
Max Habibi
town drunk
( and author)

Joined: Jun 27, 2002
Posts: 4118
You're right, List is an interface. And I also agree with you that answer should have been Vector.

Java Regular Expressions
Barkat Mardhani
Ranch Hand

Joined: Aug 05, 2002
Posts: 787
Thanks guys. I hope creater of Jxam would see this post...
I agree. Here's the link:
subject: Q on Jxam
It's not a secret anymore!