Java

Topic: Design pattern

Explain Patterns in Java template?

Patterns in Java uses the following template:• Pattern Name: The name and a reference to where it was first described• Synopsis: A very short description of the pattern• Context: A description of the problem the pattern is intended to solve• Forces: A description of the considerations that lead to the solution• Solution: A description of the general solution• Consequences: Implications of using the pattern• Implementation: Implementation details to consider• Java API Usage: When available, an example from the Java API ismentioned• Code example: A code example in the Java language• Related patterns: A list of related patterns

Browse random answers: