Help coderanch get a
new server
by contributing to the fundraiser
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

Collection Interface?

 
Ranch Hand
Posts: 469
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What exactly I should read about Collection Interface & Assertions.There is so much material on net.Not understanding what to read & what not to....Is there any book which covers both the topics from SCJP1.4 certification point of view?
Thanks
Veena
 
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Kathys book is the best place to start.Arnold-Gosling-Holm have a nice chap on Collections(chap 16) but not assertions.Rattan
 
Cowgirl and Author
Posts: 1589
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Howdy,
Here are a few tips on what you do and don't need to know for the exam. I agree that it's hard to know what to study and what not to study.
Sun has an assertions document and EVERYTHING you need on assertions, for the exam, is in that paper. I would become familiar with all of it. Know how to enable and disable assertions, and the syntax for using them. Pretty easy stuff, except for memorizing some of the rules for the enabling/disabling flags. There's a strange little gotcha about package hierarchies in there, so pay close attention to the ways in which you can enable and disable packages and sub-packages. Sub-packages is a phrase that's brand new to Java, and used mainly just for assertions.
You know how import statements don't include supackages?
(like, import java.awt.*; will NOT import java.awt.event.; In other words, packages that happened to share parts of their directory tree were not programmatically related in any way.)
But with assertions, you *can* take advantage of subpackages, like saying, "Take everything in this package, and in any package that's further down this directory/package structure."
From the docs:
For example, the following command runs a program, BatTutor, with assertions enabled in only package com.wombat.fruitbat and its subpackages:
java -ea:com.wombat.fruitbat... BatTutor

http://java.sun.com/j2se/1.4/docs/guide/lang/assert.html
===================================
For Collections, you need to know:
* The interface and class structure for Collection and Map
* The difference between Set, List, and Map
* The implementation classes of Set, List, and Map
* very basic understanding of iterators
*Have a good idea of what each of the implementations (and interfaces) are good for. In most questions, as long as you know exactly *what* the classes do, you should be able to figure it out.
* Know the difference between unsorted, unordered, ordered and sorted, and how they relate. Be sure you know which classes are sorted and which are not, and which classes are ordered and which are not.
* Understand the contract for hashcode and equals, but this is ALL in the J2SE API docs for class Object.
You do NOT need to know:
* The implementation algorithms for the collections.
* Most of the method signatures for the collections
(although you should know the fundamental ones that come from the highest places in the inheritance/implementation hierarchy)
* Details about the Collections class
You *can* learn what you need if you study the API docs for the Collection classes. I would spend some time drawing charts of how the classes fit together, and organize and sort them according to how they behave.
Have fun
-Kathy
 
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Kathy,
Thanks 4 ur tips.
As u said Sun's assertions document gives EVERYTHING an exam-taker needs on assertions.
Ya as u said spending time drawing charts of how the classes fit together, and organize and sort them according to how they behave do help us.
Thanks again kathy.
 
Ranch Hand
Posts: 203
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I believe that after exam you should feel comfortable with Java classes. Otherwise I don't think a paper in your hand make any difference.
Please follow these links to know more about assertions
http://www.jdance.com/assertions.shtm
Regarding collections--
As already suggested better read the Java Programming language book. This book is available online for free.
 
Veena Pointi
Ranch Hand
Posts: 469
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Sarma Lolla:
I believe that after exam you should feel comfortable with Java classes. Otherwise I don't think a paper in your hand make any difference.
Please follow these links to know more about assertions
http://www.jdance.com/assertions.shtm
Regarding collections--
As already suggested better read the Java Programming language book. This book is available online for free.


Can you please send me the link for Java Programming language book?
Thanks
Veena
 
reply
    Bookmark Topic Watch Topic
  • New Topic