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

Dec 30, 2011

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

Anonymous

Feb 26, 2011

It will return value "a"