Win a copy of Real-World Software Development: A Project-Driven Guide to Fundamentals in Java this week in the Agile and Other Processes forum!

Daniel Spaethe

+ Follow
since Dec 06, 2003
Cows and Likes
Total received
In last 30 days
Total given
Total received
Received in last 30 days
Total given
Given in last 30 days
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Daniel Spaethe

Does the Printed Certificate show that it was an Upgrade Exam.. or does it just show that it was for 5.0

Even though it isn't as high as I would of liked it to be, I'll still take that score.
14 years ago
You should be fine with having the arguments set within the constructor or setting them with a "setter" method. Each thread that comes through this method will spin off it's own thread with it's own instance of the Runnable target. You can actually create multuple threads o rnu on the same runnable target, which in this case is "MyClass", but it lokos like you are just having one thread that you create do that, which is fine. I will use the same examples that have been used above. Lets say that the someMethod() is where you are having multiple threads commnig through your web-application. Inside this method, you are creating a new instance of "MyClass" out on the heap, which is an object local to that method. When the method "someMethod" finishes, your stack frame is gone, but the thread you created and passed your runnable class as the target will still be processing and running in the background until that thread finishes the run() method you must implement.

The preferred way is to implement the Runnable interface like you are someone else mentioned here. The only reason you really extend any class is to override behavior of that class and most people are just wanting it fo the pubic void run() method. If you look at the Thread class, it actually implements the Runnable interface.

Hope this helps,

I agree. I don't think we need to add another certification, just because "some" people who haven't had any Java expereince find the SCJP 1.4 exam too challenging or to difficult. I didn't have any professional Java experience and I studied and put in a lot of hard work and passed with an 85% If you are "dumbing" down certification exams, then why even have them at all. Ok, how about this. If you can spell Java or use it in a sentence, we will give you the "new" certification.

I studied on and off for around 6 months. With projects at work, sometime I found it hard to study, but the last 2 months I forced myself to find time. I read the book one time, but as I was reading it, I wrote down a couple of the key important things that spanned a couple of pages on note cards. So basically I read ahead in the book, and then went back to the page where I left off with my note cards and continued with those. So essentially, I was re-reading what I had just read and helping myself remember it by writing it down. When I was through, I ended up with about 375 note cards. I would review through these and I also bought practice tests from It gives you 350 questions to practice for about 30 dollars, which I think is a bargain. If you go to the website and pick Sun Microsystems then SCWCD, after about 10 seconds it will display a pop-up indicating that if you click on the link you can fill out your e-mail address and the test you want to take and it will send you a 20% of discount code in the e-mail. If for some reason it doesn't take you to the link, make sure you don't have pop-ups blocked, but you will first have to go and clear your cookies in your web-browser for the pop-up to display again.

Wish you the best of luck...
Thanks for writing such a good book. I always know that I am getting a good book if I see one of your three names on it.

Keep up the good work!

Sorry, meant to say that the FORM is the least secure of all:
BASIC - is encoded, but not encrypted. base 64
DIGEST - not widley used.. but more secure than BASIC
CLIENT-CERT - clients need a certificate on their side.
FROM - least secure of all 4
From my understanding, the reason they indicate that form based authentication should only be used wihen SSL session tracking is enabled is that out of the 4 types, BASIC, CLIENT-CERT, DIGEST and FORM, FORM is the least secure. The other 3 types provide at least some type of encryption.

As for your other qustion, an empty <auth-constraint/> tag will combine with anything else and will allow "nobody".

Yes, you are fine. To take the SCWCD, you need to be a SCJP. It doesn't matter what version.

Someone with a SJCP 1.2, could take test.
On page 531 of HFS, it is basically stating that the Container can pool and reuse Classinc tag handlers. It says that you should reset any instance variables in the doStartTag().

I know that Simple tags are not pooled so you don't have this problem, but does that mean each client would get its own instance of the Classic tag? I know with servlets and jsp's, there is only one instance per class and I didn't see anything talking about thread safety when it came to instance variables in Classic tags.

Thanks in advance,

I took the 1.4 a little over a year ago, and I remember that I my results did not show on the Cert Manager for a few days.
15 years ago
Mine has already shipped and I should be receiving it within the next day or so. I ordered this book on December 18, 2003. So I am glad it is finally here.
Does the new book, "Head First SCWCD", that is being released in January 2004, cover the new requirements of the new SCWCD exam? I liked the 310-035/310-027 certification book you and Kathy wrote so much, that I searched for your names and found this one on Amazon.
I just passed the SCJP 1.4 exam with an 85%. I have over 4 years of programming experience with Visual FoxPro. Even though this language is not widely used, it is a OOP programming language which allows for inheritance, encapsulation, ect. I would like to find an entry-level Java programming position in the St. Louis, Missouri area.
I will also be pursing either the SCWCD certification or the SCBCD certification soon.
You can e-mail me at:
16 years ago