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 only way to define any class as a static class is to make it a nested class. When you make a nested class static however, it is the same as creating a new top level class. Why do want to make an Exception class static?
2) How can I use return and throw in the same method.
If you have a method that can throw an exception you can do this: