Knowledge Goals
- To understand what is and is not an exception
- To know when throwing an exception is appropriate
- To know how an exception should be handled
- To understand the role of the switchstatement
- To understand the purpose of the breakstatement
- To understand the distinctions among the alternative looping statements
- To be aware of Java’s additional operators and their place in the precedence
hierarchy with respect to each other
Skill Goals
To be able to:- Use the Java exception-handling facilities try,catch, and throw
- Define an exception class
- Throwan exception
- Write a switchstatement for a multiway branching problem
- Write a dostatement and contrast it with a whilestatement
- Write a forstatement as an alternative to a whilestatement
- Choose the most appropriate looping statement for a given problem
Exceptions and
Additional Control
Structures
1972
HP introduces the
hand-held scientific
calculator; hand-
held calculators
replace the slide
rule
1972
Nolan Bushnell
takes his video
game Pong and
founds Atari,
launching the
computer-
entertainment
industry1972
Alan Kay’s ideas
fuel the
development of the
computer language
Smalltalk1972
Dennis Ritchie
develops the
programming
language C1972
Alain Colmerauer
develops the
programming
language Prolog1972
The first
programmable
word processor is
introduced in
CanadaT
E
A
M
F
L
Y
Team-Fly®