5. Exception mechanism support
5.1 Exceptions in Java
Exceptions are a classic programming language construct. They enable programmers to handle unexpected situations in a unified way. Exceptions in Java are very similar to those defined in other programming languages such as Ada or C++.
In Java, exceptions are implemented mainly using the following three keywords:
try is used to define the block in which an exception may occur: because of one of the instructions in the block defined by try, or inside one of the procedures called from the block (nested calls);
catch is used to define the code of the exception handler block;
throw is used to signal that an exception has occurred....
Exclusive to subscribers. 97% yet to be discovered!
Already subscribed? Log in!
Exception mechanism support
Article included in this offer
"Control and systems engineering"
(
143 articles
)
Updated and enriched with articles validated by our scientific committees
A set of exclusive tools to complement the resources
Bibliography
References
- (1) - GUPTA (R.) - Introduction to embedded systems - . UC Irvine (2002). http://www1.ics.uci.edu/~rgupta/ics212/w2002/intro.pdf
- (2) - - Spécifications...
Exclusive to subscribers. 97% yet to be discovered!
Already subscribed? Log in!