• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Q on Collections

 
Sumithab Baskaran
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I was going thro' the Dan Chisholm questions, and found 3 or 4 questions on: is (List/Set/Map) instanceof (Cloneable/Serializable/Iterator/ListIterator)??
I have not read any info of these before. Where can I read about these?
 
Corey McGlone
Ranch Hand
Posts: 3271
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Sumithab Baskaran:
I was going thro' the Dan Chisholm questions, and found 3 or 4 questions on: is (List/Set/Map) instanceof (Cloneable/Serializable/Iterator/ListIterator)??
I have not read any info of these before. Where can I read about these?


List API Spec
Map API Spec
Set API Spec
Collection API Spec
Cloneable API ApecSerializable API Spec
Iterator API Spec
ListIterator API Spec

Those API Spec pages should give you all you need to know about those interfaces.
 
Sumithab Baskaran
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks. I did take a look at those pages. Is it necessary to know which Collections implement which interfaces? I mean, do I need to know all of them?
There are quite a few of them.
 
Corey McGlone
Ranch Hand
Posts: 3271
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Sumithab Baskaran:
Thanks. I did take a look at those pages. Is it necessary to know which Collections implement which interfaces? I mean, do I need to know all of them?
There are quite a few of them.


I don't believe so. Certainly, you should know that List and Set extend Collection while Map does not, but I don't think it's essential that you know all of the various interfaces that are involved.

I would pay the most attention to things like Collection, Iterator, List, Map and Set. Knowing some of the more popular sub-interfaces, such as ArrayList, LinkedList, HashMap, HashSet, and Vector would be good, too. I wouldn't expect many questions on the exam that would require memorization of these interfaces/classes. If there are any, I imagine they'd be fairly basic and a decent understanding of the constructs, in general, should be enough to get you by.

Unless you're really shooting for a high score, I don't put a lot of stock in questions that require you to memorize the API Spec. I can't hardly remember the last time I programmed anything significant without the API spec handy for reference.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic