Java Reference
In-Depth Information
The
assert
keyword creates an assertion, which is a condition that should be true dur-
ing program execution. If the assertion is false, an
AssertionError
is thrown.
A native method is useful when interfacing to routines written in languages other
than Java, or when optimizing code for a specific run-time environment.
Chapter 16: Introducing Swing