File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "finalization" Watch "finalization" New topic


Tomasz Wilk

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

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:

hope that helps,
greetings, Markus
Xabier Martija
Ranch Hand

Joined: Jul 18, 2007
Posts: 40
-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.
I agree. Here's the link:
subject: finalization
It's not a secret anymore!