All code in my posts, unless a source is explicitly mentioned, is my own.
SCJP 1.6, SCWCD 5.0, SCBCD 5.0 [loading..]
Himalay Majumdar wrote:In the code only one instance is created. Exception e
When the execution comes out of catch block(it goes to finally), it becomes eligible for garbage collection.
So.. when the object is eligible for garbage collection..finally will definitly be executed.
Its more like a round-around option
All code in my posts, unless a source is explicitly mentioned, is my own.
.You could also make the exception object eligible for GC inside the catch block, and then call System.exit(0), and in that case the finally block will not be entered.
SCJP 1.6, SCWCD 5.0, SCBCD 5.0 [loading..]
Himalay Majumdar wrote:
.You could also make the exception object eligible for GC inside the catch block, and then call System.exit(0), and in that case the finally block will not be entered.
Thats right..I dint consider this point. May be this question is made for people like me...
Lets wait for Devaka on this.
All code in my posts, unless a source is explicitly mentioned, is my own.
All code in my posts, unless a source is explicitly mentioned, is my own.
Author of ExamLab - a free SCJP / OCPJP exam simulator
What would SCJP exam questions look like? -- OCPJP Online Training -- Twitter -- How to Ask a Question
Devaka Cooray wrote:Yep there is a confusion on this question. However, this question is already removed from the new version.
All code in my posts, unless a source is explicitly mentioned, is my own.
Ruben Soto wrote: When did the new version come out?
Author of ExamLab - a free SCJP / OCPJP exam simulator
What would SCJP exam questions look like? -- OCPJP Online Training -- Twitter -- How to Ask a Question
All code in my posts, unless a source is explicitly mentioned, is my own.
Author of ExamLab - a free SCJP / OCPJP exam simulator
What would SCJP exam questions look like? -- OCPJP Online Training -- Twitter -- How to Ask a Question
Devaka Cooray wrote:It is best if you can post a topic it on JavaRanch. And it is much more better if you can notify me about that topic via a PM.
All code in my posts, unless a source is explicitly mentioned, is my own.
Ruben Soto wrote:
Devaka Cooray wrote:It is best if you can post a topic it on JavaRanch. And it is much more better if you can notify me about that topic via a PM.
Aye aye, Captain!
Author of ExamLab - a free SCJP / OCPJP exam simulator
What would SCJP exam questions look like? -- OCPJP Online Training -- Twitter -- How to Ask a Question
Devaka Cooray wrote:
Ruben Soto wrote:
Devaka Cooray wrote:It is best if you can post a topic it on JavaRanch. And it is much more better if you can notify me about that topic via a PM.
Aye aye, Captain!
As far as some lot of busy works, I'm not a regular user of JavaRanch. In some cases, I may not visit here for even several weeks. Therefore it is bit hard to find a topic which is about my simulator, as I couldn't read all the topics. Therefore, if someone can notify about the topic via a PM to me, I would consider it.
All code in my posts, unless a source is explicitly mentioned, is my own.
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime. |