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 guys, was going through some common available Exceptions in Java just to learn and found this following example related to "IllegalStateException" from somewhere (sorry can't recall the source). Can any one please help me to understand here what the writer is trying to say?
continuing what john and muhammad said, the author is just demonstrating exception handling. i can't imagine a scenario where i would only have one line of code in a try block and all it did was throw an exception.