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.
Hello I have a code as follows
1. Not working Code :
as you can see fore the the code will not compile
2. Working Code :
As you can see the difference in both the snippets that the placement of the psw object.
So want to know that when I created the PrintWriter object in the try block it's scope got limited it try block only.
Does this mean that object / variables defined in try block have their scope limit to that try block ?