wood burning stoves*
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Notes on Assertions Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Notes on Assertions" Watch "Notes on Assertions" New topic
Author

Notes on Assertions

Khalid A. Mughal
author
Ranch Hand

Joined: Jul 30, 2002
Posts: 103
We have posted a 14-page excerpt on assertions (with review questions) from the forthcoming second edition of our book:
A Programmer's Guide to Java Certification: A Comprehensive Primer
by Khalid A. Mughal and Rolf W. Rasmussen

The notes can be downloaded from here:
http://www.ii.uib.no/~khalid/pgjc/jcbook/new-exam-note-020928.html

Enjoy!
[ October 30, 2002: Message edited by: Khalid A. Mughal ]
Jessica Sant
Sheriff

Joined: Oct 17, 2001
Posts: 4313

Khalid-
The assertions chapter looks like an excellent resource (as was/is the rest of your 1.2 book). When will the 1.4 book be published?
Manish Hatwalne
Ranch Hand

Joined: Sep 22, 2001
Posts: 2578

Jessica, the site says the book will be published in the first quarter of 2003.
The notes look excellent Khalid!
- Manish
raze Codeson
Greenhorn

Joined: Oct 31, 2002
Posts: 1
Ehh, I will take the 1.4 exam after noon today, and read your chapter about assertions, and I�m impressed!
But I�m little bit confused about the question marked 5.26.
The answer is "AssertionException".
I have not seen anywhere this Exception (if you don�t write it your self), only AssertionError i throws, or???
Thanks,
/Thomas
Rachel White
Ranch Hand

Joined: Sep 04, 2001
Posts: 37
Great notes.
Khalid Sir: When are you launching the new version?
Regards and best wishes
Rachel
Alfred Kemety
Ranch Hand

Joined: Aug 14, 2002
Posts: 279
Question 5.26 answer is:

The class of exceptions thrown by assertion statement is always AssertionException.

I searched the API for AssertionException class but only found AssertionError
is it a typo??


Alfred Raouf - Egypt - SCJP 1.4<br />Kemety.equals(Egyptian) // returns true
James Chegwidden
Author
Ranch Hand

Joined: Oct 06, 2002
Posts: 201
Go to the Addison-Wesley web site: www.awl.com
It says when it will published next year.


Author and Instructor, my book
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Notes on Assertions