Originally posted by Jo Lee:
If one declare an exception, does one still need to do a try /catch in the methods? or is it legal to do a try/catch block in a method that has declared an exception?
is the above legal?
Originally posted by Jo Lee:
Another question is : is the following also legal? please explain why?
Originally posted by Jo Lee:
A third quesiton about this: is the following legal?
thanks again
Originally posted by Jo Lee:
the eofe is throw back to the caller, right?
if the try/catch block is in a for loop, would rethrow eofe in the catch block allows the for loop to go on to the next iteration? would it make any difference, if the for loop is an endless loop?
in a endless for loop, if an exception is caught, would the loop been ended, or do we need to use additional code such as break in the catch block to get out of the for loop.
SCJP2. Please Indent your code using UBB Code
When you have exhausted all possibilities, remember this: you haven't - Edison. Tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
|