Sonata Software interview question

when a method containing below code will result in try{ throws exp1}catch(Exception e){throws exp2} finally{return a}

Interview Answers

Anonymous

30 Dec 2011

Sorry, the code wouldn't compile. But if you mean throw new Exp1.....instead of throws, then your answer is right.

Anonymous

26 Feb 2011

It will return value "a"