Which are the two blocks that are used to check error and handle the error?

Which are the two blocks that are used to check error and handle the error? Correct Answer Try and catch

Two blocks that are used to check for errors and to handle the errors are try and catch block. The code which might produce some exceptions is placed inside the try block and then the catch block is written to catch the error that is produced. The error message or any other processing can be done in catch block if the error is produced.

Related Questions

Consider the following questions: A): Five wheel rotations on a bike takes you 12 yards. How many wheel rotations will be required to go 60 yards? B): In a college, 5 out of every 8 seniors live in apartments. Out of 30 seniors how many are likely to live in apartment? C): John and Lisa were walking at the same speed. Lisa started first. When Lisa has walked 6 blocks, john has walked 2 blocks. How many blocks would John cover when Lisa has covered 12 blocks. Choose the correct option.
In nested try catch blocks, if both inner and outer catch blocks are unable to handle the exception thrown, then ______________