answersLogoWhite

0

A try statement is used in conjunction with one or more catch blocks to provide exception handling. If an exception is thrown by a try block, the corresponding catch block will handle the exception. If no catch block is provided for a particular exception, then a runtime error occurs instead. Try-catch statements are used to provide graceful resolutions to potential runtime errors.

User Avatar

Wiki User

11y ago

What else can I help you with?

Related Questions

What do the initials CBF and CPP stand for?

CPP


What is the use of catch block in java?

the catch block catches the exception from the try block to display a proper message about the exception. Answered by, SOORAJ.M.S


When was CPP Group created?

CPP Group was created in 1980.


Explain a program for this pointer in cpp?

Go to the link. You will got use of "this" keywork with simple explanation and example. http://cpp.codenewbie.com/articles/cpp/1527/Keyword_this-Page_5.html


Will particular C program be compatible for both g c c and DEV Cpp compiler?

That is possible. Try it.


Why you use CPP in vinyl base ink for OPP substrate?

it gives adhesion on opp


What c plus plus program must be saved in a text with the extension cpp?

The .cpp extension is merely conventional; it is not required by the C++ standard. You can actually use any file extension you wish.


Why use catch keyword in java?

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


Why use throw in java in compare try-catch?

we use throws in our program so that we dont need to write try & catch block & to avoid the exception


Which is equivalent to try and finally block?

Try block is followed by finally block as an alternative . But usually it is followed by a catch block. Both are equivalent.


When was CPP Studios Event GmbH created?

CPP Studios Event GmbH was created in 1983.


How do i block a youtube video to download?

Try to use Namo CyberFence, it allows you to check and find out what videos they watch, and they can block the harmful videos from playing..