10.

T-V

Tail call

A method invocation that occurs as the last operation of a method definition. It is possible to optimize a tail call by replacing the stack frame of the caller with that of the callee. Unfortunately, the Java Language Specification does not require Java implementations to be optimized in this way.

Tail-recursive call

A recursive method call that is also a tail call.

Template Method design pattern

A pattern that allows you to write an abstract class that contains only part of the logic needed to accomplish its purpose. You then organize the class so that its concrete methods call abstract methods where the missing logic would have appeared, and provide the missing logic in subclass methods that override the abstract methods.

Test-oriented programming

A style of programming in which the design and coding strategies used are heavily influenced by the need to develop a thorough suite of unit tests over the code.

Unchecked exception

An exception that is not handled within the program that signals it. Unchecked exceptions are best used to signal bugs in a program, as opposed to unexpected events intruding from outside the program.

Unit test

An automated test that some part (unit) of a program implementation behaves as expected. Unit tests serve not only to help maintain robustness, but also as a form of documentation.

Upcasting

The cast of an expression to a supertype of the expression's static type. Upcasts are guaranteed to succeed, but they are occasionally useful for disambiguating calls to overloaded methods.

View

One of the three types of components in a Model-View-Controller architecture; it provides some visual representation of the model. A given model may have multiple views.

Visitor design pattern

This pattern provides an alternative way to implement an operation over a complex data structure. It lets you avoid complicating the classes of the objects in the structure by putting all of the necessary logic in a separate "visitor" class. It also allows the logic to be varied by using different visitor classes.



Bug Patterns in Java
Bug Patterns In Java
ISBN: 1590590619
EAN: 2147483647
Year: N/A
Pages: 95
Authors: Eric Allen

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net