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.
the fallowing first example is from jxam or jargon the out put does not include " End processing " why ? but second example from Khalid and Rolf example gives an out put which includes " Returning from division." which is at the same place as "End processing" of above example ?
first example :- import java.io.*; import java.net.*;
Hie kameshwar, I think you need to recall that "return" is a "Flow Control Transfer" statement.Control transfer statements are those statements that transfer the flow of control from the current position to some other position. Return, transfers the flow from a method to where the method was called from.So the presence of "return" in the catch block of the first example makes control to move from this method altogether, and thus the last line is not executed.Notice that "return" is not present in the catch block of the second example. Try to verify this by removing "return" from the catch block of the first example and see if it behaves differently. Regards, Herbert.
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