Answer Posted / srinu
A java method that is capable of calling set of methods in a
sequence to completd task is called template method
EX:-
public void xyz()
{
x();
y();
Z();
}
Best Example for template design pattern for in struts
framework org.apache.struts.action.RequestProcessor
class follow Template Design pattern. In RequestProcessor
class nearly 16 no.or processXXX() methods are their These
methods are exceuting sequence thats way this method is
called Template method.
RequestPrcocessor calls cretes/locates formbean
class object and calls Reset(),validate() methods in
formbean class and calls execute()in Action class.This takes
Application contrlloer for frontcontroller servlet of Action
class
| Is This Answer Correct ? | 5 Yes | 1 No |
Post New Answer View All Answers
What does nullpointerexception mean?
What is indexof?
What is Recursion Function?
Give an example of use of pointers in java class.
How do you override a method?
What are the benefits of operations?
Tell me are there implementations for sorting and searching in the java libarary?
Is a boolean variable?
What is an argument java?
What are the parts of methodology?
What is a variable declaration?
When throw keyword is used?
What is the meaning of course?
Can we declare register variable as global?
How can we find the sum of two linked lists using stack in java?