Design Pattern Used In JDK

Connect with

Template method:

Used in jdk:

  • All non-abstract methods of,, and
  • All non-abstract methods of java.util.AbstractList, java.util.AbstractSet and java.util.AbstractMap.
  • javax.servlet.http.HttpServlet, all the doXXX() methods by default sends a HTTP 405 “Method Not Allowed” error to the response. You’re free to implement none or any of them.

Used in jdk:

  • All implementations of java.lang.Runnable
  • All implementations of javax.swing.Action

Connect with

Leave a Comment

Your email address will not be published. Required fields are marked *