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 type of questions asked for barclays technologies pune please send urgent
How to display arraylist values in java?
What is the purpose of main function in java?
How many types of variables are there?
What is canonical name in java?
Can classes declared using the abstract keyword cab be instantiated?
What are thread safe functions?
What is the difference between actual and formal parameters?
Explain restrictions for using anonymous inner classes?
Explain an intermediate language?
What is array and arraylist in java?
What is array pointers ?
What is the platform?
What do you mean by a JVM?
What is use of inner class in java?