Amandeep Singh wrote:
I know the correct answer is 4. But i am confused with the explanation given it says- MyApplicationException is a runtime exception (because it is not declared in the throws clause). Does that means it will now treat this MyApplicationExcepton as RuntimeException(extends SystemException) also it has no @ApplicationException defined. According to this explanation as it is Runtime Exception, the correct anser would have been 2.
Please Advice.
It say MyApplicationException is runtime exception but it is also given it is an application exception (so it is not system exception).
so the only way it can be if it is annotated with @ApplicationException
and in it no rollback is specified so by default rollback is false is assumed,so tx is not rollback