
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!
You do not have access to this resource.
Click here to request your free trial access!
Already subscribed? Log in!

The Ultimate Scientific and Technical Reference
This article is included in
Software technologies and System architectures
This offer includes:
Knowledge Base
Updated and enriched with articles validated by our scientific committees
Services
A set of exclusive tools to complement the resources
Practical Path
Operational and didactic, to guarantee the acquisition of transversal skills
Doc & Quiz
Interactive articles with quizzes, for constructive reading
Exception mechanism support
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!
You do not have access to this resource.
Click here to request your free trial access!
Already subscribed? Log in!

The Ultimate Scientific and Technical Reference