Meaningless Drivel is fun!*
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes finalization Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "finalization" Watch "finalization" New topic
Author

finalization

Tomasz Wilk
Greenhorn

Joined: Jul 13, 2007
Posts: 11
1. can ant be used to produce a submission.jar? Is there any name required for submission.jar? (I know - it is to contain runme.jar)
2. how do you think? should read be between lock and unlock? i.e. every time we search for rows we have to read them to check if they match query.
I think every row should be processed in locked code so the currently processed row will not be changed by update or delete
3. Data class testing: I created some JUnit tests which just run a lot of reading/writting threads. Do you think for automatic testing that is sufficient for threading?
Markus Hopper
Greenhorn

Joined: Nov 20, 2006
Posts: 13
Hi Thomasz,

1. i did it with ant, too. when you upload your assignment, the certmanager give you a name for your jar, something like scjd_sr<id>.jar, where you put all your files in.
2. i used jdk1.5 locking, so i used read-locks for reading, when writing the read-locks will be blocked.
3. use this class for testing: http://www.coderanch.com/t/188740/java-developer-SCJD/certification/Testing-Tool-Data-Class

hope that helps,
greetings, Markus
Xabier Martija
Ranch Hand

Joined: Jul 18, 2007
Posts: 40
hi:
-I use ant to build and packaging the submission. Do you use it too to create the submission?
take a look:


-I found this testcase useful:JUnit Test Cases. They went fine.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: finalization