Answer Posted / naresh tuhania
Intent
Define the skeleton of an algorithm in an operation,
deferring some steps to
subclasses. Template Method lets subclasses redefine certain
steps of an
algorithm without changing the algorithm's structure.
Motivation
Sometimes you want to specify the order of operations that a
method uses,
but allow subclasses to provide their own implementations of
some of these
operations
| Is This Answer Correct ? | 3 Yes | 2 No |
Post New Answer View All Answers
What is the difference between throw and throws in java?
What is static method with example?
Variable of the boolean type is automatically initialized as?
What does exclamation mean in java?
What is int short for?
Explain which of the following methods releases the lock when yield(), join(),sleep(),wait(),notify(), notifyall() methods are executed?
What is the final class?
What is the difference between static class and normal class?
What is the purpose class.forname method?
What is a variable declaration?
Difference between current previous versions of Java?
How many ways can you break a singleton class in java?
Why does java have two ways to create child threads? Which way is better?
What is module with example?
What is meant by 'bit masking' in java?