News

8 guidelines for writing reusable Java code. Define the rules for your code; ... Defines the skeleton of an algorithm in a base class, allowing subclasses to provide specific implementation details.
Java Reflection APIs and Java interfaces provide great tools for writing reusable code. Take, for example, the case of a generic command launcher: Suppose you had a set of classes performing ...