The guidelines in this chapter address areas where developers often make unwarranted assumptions about Java language and library behaviors, or where ambiguities can easily be introduced. Failure to follow these guidelines can result in programs that produce counterintuitive results.
This chapter contains guidelines that address
- Misconceptions about Java APIs and language features
- Assumptions and ambiguity-laced programs
- Situations in which the programmer wanted to do one thing but ended up doing another