Article | REF: S8068 V1

Java in embedded and real-time systems

Author: Xavier CORNU

Publication date: June 10, 2004

You do not have access to this resource.
Click here to request your free trial access!

Already subscribed? Log in!


Français

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....

You do not have access to this resource.

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

A Comprehensive Knowledge Base, with over 1,200 authors and 100 scientific advisors
+ More than 10,000 articles and 1,000 how-to sheets, over 800 new or updated articles every year
From design to prototyping, right through to industrialization, the reference for securing the development of your industrial projects

This article is included in

Control and systems engineering

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

Subscribe now!

Ongoing reading
Exception mechanism support