In the above program i have written return statement in try block,if exception is there in try block what happend(return is there in try block) and exception is not there in try block?
pls tell me i have faced this question two interviews yaaa
If you will get an exception it will go to the catch and finally and if no exception then only finally.So return will not effect much. Best way is write a code and run all aspects,the questions in your mind.