Hi Hans,
1) false. Error is derived from Throwable, like Exception. So you can create a try catch-block, which catches Throwable and you will also get the Errors. If this is good programming is something different, but it is possible. At least that's my opinion..
2) true. You can use a try-catch, a try-finally or a try-catch-finally. But either catch or finally has to existent...
As always, correct me if i'm wrong
cheers
Oliver :-) :-)
Originally posted by Hans Li:
1)catch statment can not catch error.True or False?
2)Try statment must follow either catch or finally statment.True or false?
Thank you.