September 2011
Intermediate to advanced
744 pages
14h 50m
English


Validate method arguments to ensure that they fall within the bounds of the method’s intended design. This practice ensures that operations on the method’s parameters yield valid results. Failure to validate method arguments can result in incorrect calculations, runtime exceptions, violation of class invariants, and inconsistent object state.
Redundant testing of arguments by both the caller and the callee is a style of defensive programming that is largely ...
Read now
Unlock full access