answersLogoWhite

0

No. Try and catch semantics contributes to the ease of writing failure tolerant code. Failure tolerance, in itself, is entirely based on the adequacy of code design which does not really depend on try and catch.

User Avatar

Wiki User

14y ago

What else can I help you with?

Related Questions

Does the Java exception mechanisms with try and catch clauses contribute to failure tolerance?

Yes, the purpose of the try-catch construct in Java is to help the system handle failure gracefully. Exception handling allows developers to detect errors easily without writing special code to test return values. Even better, it lets us keep exception-handling code cleanly separated from the exception-generating code. It also lets us use the same exception-handling code to deal with a range of possible exceptions.


Can tolerance cause a overdose?

Only if you take more of a certain medicine to try to overcome the tolerance. Be careful!


Define a catch block?

A Catch block is part of the exception handling mechanism in Java. It is used along with the try block. Ex: try { ... } catch (Exception e) { ... } The catch block is used to catch & handle the exception that gets thrown in the try block.


What is a final catch statement?

A "final catch" or a "try catch" statement is an exception (error) handling statement that will try to run the code between the final/try and "catch". If an error has been encountered, then the computer will proceed to the catch portion of the statement to prevent the program from terminating on error.


I keep getting errors in my java programming I am taking it in HS and it keeps giving me the errors catch without try and try without catch?

Every try block must have a catch block, and vice versa.


How do you catch Mewtwo in Pokemon Blue?

Try to catch it with a masterball. that's what i did.


Do you have to try to get out of the way when your about to get hit by the pitch?

i would catch it! i would catch it!


Why use catch keyword in java?

no, because catch is used to handle exceptions which are generated from try block


How do you beat catch a toy?

TRY!


Can you catch slakoth in ruby?

You can catch slakoth in Ruby, just go to Lilycove City and try your hardest to try to catch it. It takes a long time to see one.-hope this helped


How many finally block can be used for an exception handler?

Genaerally every try block maintain the one finally block or atleast one catch block or both. It mean try { try{ try{ } or } or } finally { catch(....) { catch(...){ } } } catch(.....) { : } finally{ : } Hear whenever we declar the try block without catch or finally bocks it show the compile time error like ' try without catch or finally' and also it is not possible to declare the any statements in between the try ,catch and finally blocks. ex: try{ } System.out.println("statement"); finally { } The above example show the compile time error 'try without catch or finally'. " Hear the finally block must be execute after excuting the try or catch block. Hence the finally block is used to release the resources like closing the streams and closing the jdbc connections." Hence in exception handling we use one finally block for one try block to release the resources.


What is the use of try in java?

The try keyword is used in Java to handle problematic situations that are commonly known as "Exceptions" The try keyword is used in conjunction with the catch keyword. If any exception is thrown by code inside the try block, they will be caught and handled by the catch block. Ex: try { ... ... } catch (Exception e){ ... }