This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
Hi Vad, I would say 4 objects per notes in the code below:
[ October 07, 2003: Message edited by: Barkat Mardhani ]
Joined: Aug 25, 2003
My doubt is what if the scheduler decides to finish off the main() thread first and only then execute the new thread? Then, 2 String constants would be put in the constant pool to be reused in the run() method (then, "abc" and "cde" objects wouldn't be created?) Yeah, after thinking awhile on my own stuff, I see you're right 4 objects will be created anyway. The difference would appear should I have different String constants in the main(). Or would it? [ October 07, 2003: Message edited by: Vad Fogel ]
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com