Forums Register Login

Errors in RHE 2nd edition (developer part) ?

+Pie Number of slices to send: Send
I have been trying to read RHE to build a foundation for the Developers exam. On Chapter 17 there is code for 'ShareThread' class. On Page 572 (2nd edition) it has some code that does not compile. Has anyone gone through this to correct it?? Maybe Michael Ernest can answer this??
thanks,
Zulfiqar
+Pie Number of slices to send: Send
Hi Zulfiqar -
With the ShareThread example, I believe there's an error in the code that should be published on Sybex's errata page. Unfortunately I don't have the book with me today so I can't be more precise at the moment.
Feel free to email me (as well as post to this topic) and I'll look at it this evening.
------------------
Michael Ernest, co-author of: The Complete Java 2 Certification Study Guide
+Pie Number of slices to send: Send
Mike, thanks for your response.
Actually I already checked the errata on Sybex's site. This particular error is not there. The errata on the website deals with code on Page - 569.
My question/problem is with the code on Page-572:
Here is the snippet:

Now the compiler first gives an error at t.start() as there is no variable 't' defined. I assume it should be thr.start();. Then the compiler gives an error at thr.start() in the while loop as 'thr' was previously defined locally to the for loop.
Since I haven't had a chance to completely understand the code, I am not sure what is hapenning and how to fix the code myself.
thank you,
Zulfiqar

[This message has been edited by zulfiqar raza (edited August 28, 2001).]
Skool. Stay in. Smartness. Tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 686 times.
Similar Threads
RHE book; First Edition vs. Second Edition
What's NOT In The Exam
New Edition of HFSJ.
Passed SCJP 1.4 with 91%
SCJP2
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 02:48:17.