One place I have in my notes I have the only thing stopping finally is system.exit() but I also have in another portion of notes that a thread dying could also stop it. I take it this means that if a Thread object is started with a finally in it and it happens to be a Daemon thread, that it's possible that the main could die and terminate this daemon thread before it's finally would get executed? Is this correct? Thanks.
posted 14 years ago
Hmmm... Seems like another perfect chance to use the compiler to answer a question. Check out this code:
I guess this lets you draw your own conclusions, but it sure looks like you're right to me. Corey
Thanks Corey! And you are right I should have written code to test this. I apologize. Scrambling around through my many notes here on my last day of studying has me a bit frazzled. Thanks for not flaming my slackness too badly Your code was perfect.