Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


what is tempplate pattern

Answers were Sorted based on User's Feedback



what is tempplate pattern..

Answer / prashant

Template pattern allows abstract representation of methods.
Implementation of these methods is left to the classes that
inherit these abstract methods. We define only a template
for the method without defining any algorithm

Is This Answer Correct ?    4 Yes 0 No

what is tempplate pattern..

Answer / 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

what is tempplate pattern..

Answer / 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

what is tempplate pattern..

Answer / ramavanan

provide an abstract definition of a method or a class and
redefine its behavior later or on the fly without changing
its structure.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Core Java Interview Questions

What are static variables and functions?

0 Answers   Tech Mahindra,


Explain reverse a linked list recursive java solution?

0 Answers  


Explain about complier design(phases)

0 Answers   Aditi Placement Service,


how to call a method in different package?

4 Answers  


What is the purpose of finalization?

4 Answers  


What is method Overriding in the perspective of OOPS?

4 Answers   TCS,


What is a boolean in java?

0 Answers  


did interface can implementation method ? i know its not possible but my interviewer said its possible ..but how..? any one have idea ???

7 Answers   IBM,


Which One is optimal to choose ? Syncronized hash map or Hash table with single thread model? How can a hash map syncronized with out using syncrozed blocks in programm?

3 Answers   Four soft,


Can we use catch statement for checked exceptions?

0 Answers  


How the threads are synchronized?

2 Answers   BMC, CTS,


Tell me how many ways are there to initialise an integer with a constant.

0 Answers   Aricent,


Categories