Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Remember Collection Implementations

 
Lennie De Villiers
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Is it important to remember which class implements which interface etc for the exam?
Like Vector implements List, Stack extends Vector, ArrayList implements List interface etc.

cheers

Lennie De Villiers
 
Jason Irwin
Ranch Hand
Posts: 327
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes. Knowing if Maps implement Collection etc is important.

Although according to K&B, Stack isn't in the exam (SCJP 6, anyway).
 
Deepak Bala
Bartender
Posts: 6663
5
Firefox Browser Linux MyEclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes it is important to know the interfaces and which class implements what.
 
Andriy Pererva
Ranch Hand
Posts: 73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, it is very impotent!
Just try to memorize this picture:



(C) K.Sierra & B.Bates - SCJP 6.0 Study Guide, p.558
 
Lucas Smith
Ranch Hand
Posts: 808
1
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This graph has an error. TreeMap can not extend NavigableMap.
 
Jesper de Jong
Java Cowboy
Saloon Keeper
Posts: 15359
39
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You're right, that should have been a dotted line (for "implements"). The same for TreeSet and NavigableSet.
 
Lucas Smith
Ranch Hand
Posts: 808
1
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yeap - I saw this bug in K&B book.
 
Andriy Pererva
Ranch Hand
Posts: 73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In fact, this book has a lot of little mistakes but despite all of them, the book is really the best SCJP preparation guide I ever seen and read.
 
Lucas Smith
Ranch Hand
Posts: 808
1
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I must agree
The book is awesome!
 
Andriy Pererva
Ranch Hand
Posts: 73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Especially the concept of "two-minute drills" at the end of every chapter! It often helps to refresh the obtained knowledge after whole book reading completed.
 
Bert Bates
author
Sheriff
Posts: 8898
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
fyi - the diagram shown here is from an older version of the book - I believe the diagram in the new version is correct.
 
Palash Kumar
Ranch Hand
Posts: 33
MyEclipse IDE Oracle Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Bert Bates wrote:fyi - the diagram shown here is from an older version of the book - I believe the diagram in the new version is correct.


yes, its correct in new books. this book is really very good.
 
Lucas Smith
Ranch Hand
Posts: 808
1
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Bert Bates wrote:fyi - the diagram shown here is from an older version of the book - I believe the diagram in the new version is correct.

The new version? NavigableXxxs appeared in J6 so is there the second revision of K&B book for SCJP6?
 
Palash Kumar
Ranch Hand
Posts: 33
MyEclipse IDE Oracle Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Lukas Smith wrote:The new version? NavigableXxxs appeared in J6 so is there the second revision of K&B book for SCJP6?


i do not know, which version book i have, but the diagram shown above is correct in my book.
 
Lucas Smith
Ranch Hand
Posts: 808
1
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have the K&B book for SCJP6 and the diagram is wrong.
 
Bert Bates
author
Sheriff
Posts: 8898
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Lukas,

Are you looking at a Polish or other non-U.S. version of the book? Sometimes what we call "foreign" editions are actually older editions.

Thanks,

Bert
 
Lucas Smith
Ranch Hand
Posts: 808
1
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think that there is no Polish edition, but on the other hand the english one is very good.
Actually I read ebook version from CD-ROM which was included. And the diagram in that version is wrong.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic