This week's book giveaway is in the Other Languages forum. We're giving away four copies of Functional Reactive Programming and have Stephen Blackheath and Anthony Jones on-line! See this thread for details.
ya why not ! A method can return any type of object or primitive type or none(void). An Exception is an object...so can be returned from the method provided the method prototype shd declare the required return type. HTH Rashmi
That's true; there's nothing about this compiler cares about:
But I'm pretty that's not the actual question; or if it is, that the learning point behind it is a rather obscure one. ------------------ Michael Ernest, co-author of: The Complete Java 2 Certification Study Guide
Make visible what, without you, might perhaps never have been seen. - Robert Bresson