cmbhatt
cmbhatt
Originally posted by Chandra Bhatt:
Thanks Keith, and Krishnan!
Any unchecked exception is free from all the discussed bondage.
ASCII silly question, Get a silly ANSI.
Originally posted by chintan
I think you needed to declare "THROWS" with amtehod()(first one), may be that causes compilation error.
cmbhatt
java.lang.Object
java.lang.Throwable
-java.lang.Exception
-java.lang.RuntimeException
-com.hp.hpl.jena.shared.JenaException
-com.hp.hpl.jena.assembler.exceptions.AssemblerException
-com.hp.hpl.jena.assembler.BadObjectException
Regards, Sanjay Singh
SCJP-1.6, OCEWCD 6
Hello Chandra, here BadObjectException is subclass of RuntimeException, so compiler shouldn't complain for the second method - anotherMethod().
cmbhatt
cmbhatt
cmbhatt
The only difference being the 'Exception' in the first class has been replaced by 'TestException'.
This tiny ad is guaranteed to be gluten free.
Smokeless wood heat with a rocket mass heater
https://woodheat.net
|