Java Reference
In-Depth Information
8 . Briefly describe the assert keyword.
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.
9 . Give one reason why a native method might be useful to some types of programs.
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
Search WWH ::




Custom Search