defines the steps to execute an algorithm and it can provide default implementation that might be common for all or some of the subclasses.
Template Method Pattern in JDK
1.All non-abstract methods of java.io.InputStream, java.io.OutputStream, java.io.Reader and java.io.Writer.
2.All non-abstract methods of java.util.AbstractList, java.util.AbstractSet and java.util.AbstractMap.
Things to remember
1.Template method should be final.
2.Template method should consist of certain steps whose order is fixed and for some of the methods; implementation differs from base class to subclass.