Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Q on Jxam

 
Barkat Mardhani
Ranch Hand
Posts: 787
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3271
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As the question is worded, you are correct. The question asked for a class so List shouldn't be a valid answer.
 
Max Habibi
town drunk
( and author)
Sheriff
Posts: 4118
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You're right, List is an interface. And I also agree with you that answer should have been Vector.
M
 
Barkat Mardhani
Ranch Hand
Posts: 787
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks guys. I hope creater of Jxam would see this post...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic