http://www.javaranch.com/ubb/Forum24/HTML/007186.html Cherry consider this sitution
in a try block there are 15 diffferent methods and a exception is generated at the 2nd line even then the whole try block will be executed and only then will the compiler move to catch block where the exceoption is called.
I am of the view that once an exception is generated then and there itself the compiler should move to the catch block and then if there is a return stattemnt then it should not execute at all
I think that problem is not the return statement but it is
-finally is the last piece of code.(try to put System .out.printl n after finally and the compiler issues same message.
Please do correct me if you find any contradiction.
--------------------------------------------------
Logic is the art of non contradictory existence
Ayn Rand -Atlas Shrugged