Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

SCJP 6 93 %

 
Kai Witte
Ranch Hand
Posts: 356
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

I passed SCJP 6 with 56/60 correct answers.

I remember two of my four wrong answers, of which one is noteworthy:

(Modified as much as required by the forum rules and agreement with Sun, without invalidating the point.)
This runs without a ClassCastException, because the subSet(...)-methods return a TreeSet, even though the interface would allow any NavigableSet. This was too tough for me, because I didn't remember the exact implementation of all methods, although I had a look at some of the sources for the most important Collection implementations.

I only was unsure about two questions and have no idea what the other two mistakes could have been; I was very confident about all my other answers.

No Serialization (as expected), no Reader/Writer, no Console, no Scanner.

I passed SCJP 1.4 already in 2004, but I didn't take the upgrade.

Kai
 
Roberto Perillo
Bartender
Posts: 2271
3
Eclipse IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Congratulations, champion!
 
Paul Anilprem
Enthuware Software Support
Ranch Hand
Posts: 3819
10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Congratulations!!!

From the code that you've shown, it looks like the question is testing your knowledge on the actual implementation class returned by the subSet() method. Is that right? If so, that is really weird because even the API documentation doesn't mention the actual class of the object returned. Although it does mention, "The returned set is backed by this set, so changes in the returned set are reflected in this set, and vice-versa. The returned set supports all optional set operations that this set supports." This still doesn't mean that the actual class of the returned Set is TreeSet.

Regardless, such a cast is bad practice and if the answer to the question depends on whether you are able to determine whether the cast is right or wrong, IMHO, the question is badly written.
 
Seetharaman Venkatasamy
Ranch Hand
Posts: 5575
Eclipse IDE Java Windows XP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Congratulations
 
Joe Harry
Ranch Hand
Posts: 10128
3
Eclipse IDE Mac PPC Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Congratulations!
 
Neha Daga
Ranch Hand
Posts: 504
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
congrats
 
Ankit Garg
Sheriff
Posts: 9580
33
Android Google Web Toolkit Hibernate IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Congrats
 
arulk pillai
Author
Ranch Hand
Posts: 3393
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Congrats and keep up the great work.
 
Vijitha Kumara
Bartender
Pie
Posts: 3930
21
Chrome Fedora Hibernate
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Congrats
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic