• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Do we need to remember the methods of Collections

 
Ravi Goli
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Everybody.
I have a question.

In the following questions of Marcus Green's Mock Exam-2,
there are methods which are not mentioned specifically to be as part of the Colllection Interface or as part of the Collection(in specific here Vector) classes in the K&B book.

Which of the following methods are members of the Vector class and allow you to input a new element

1) addElement----( This is the Answer, not mentioned in K&B)
2) insert
3) append
4) addItem

Which of the following are methods of the Collection interface?
1) iterator
2) isEmpty----( This is the Answer, not mentioned in K&B)
3) toArray----( This is the Answer, not mentioned in K&B)
4) setText

So, My question is does the exam really has such questions about the stuff(that has to be memorized) which is not specifically mentioned in the K&B book.

Thankx,
Ravi.
 
Ravi Goli
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Iam Sorry,

I've mistakenly posted this mesage here.
Iam posting it now on SCJP Forum.

Ravi
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic