SCJP 1.4, SCWCD1.4, OCA(1Z0-007)
CDCRuntimeExceptionHandler not able to catch ArithmeticException
Pinkal Patel<br />SCJP 1.5<br />Preparing for SCWCD
SCJP 1.4, SCWCD1.4, OCA(1Z0-007)
Originally posted by N Chaurasia:
But the CDCRuntimeExceptionHandler is super class of ArithmeticException and if i am not wrong the super class can catch sub-class exception.
SCJP 1.4, SCWCD1.4, OCA(1Z0-007)
SCJP 1.4, SCWCD1.4, OCA(1Z0-007)
SCJP 1.4, SCWCD1.4, OCA(1Z0-007)
You'll need to make the parameter in the catch block ArithmeticException or one of its superclasses
SCJP 1.4, SCWCD1.4, OCA(1Z0-007)
SCJP 1.4, SCWCD1.4, OCA(1Z0-007)
SCJP 1.4, SCWCD1.4, OCA(1Z0-007)
SCJP 1.4, SCWCD1.4, OCA(1Z0-007)
SCJP 1.4, SCWCD1.4, OCA(1Z0-007)
i can say : CDCRuntimeExceptionHandler = ArithmeticException and CDCRuntimeExceptionHandler = RuntimeException since in both cases the CDCRuntimeExceptionHandler is super class.
Pinkal Patel<br />SCJP 1.5<br />Preparing for SCWCD
SCJP 1.4, SCWCD1.4, OCA(1Z0-007)
SCJP 1.4, SCWCD1.4, OCA(1Z0-007)
Pinkal Patel<br />SCJP 1.5<br />Preparing for SCWCD
Pinkal Patel<br />SCJP 1.5<br />Preparing for SCWCD
Don't get me started about those stupid light bulbs. |