title: Create method outside POST method is servlet
body: <p>Hi I have created a private method inside the servlet. 
  The method will be called from the post method. My questions is, <strong><em>will it be threadsafe</em></strong> since it will be called via ajax by many many user?</p>
  
  <pre><code>protected void doPost(HttpServletRequest request,
              HttpServletResponse response) throws ServletException, IOException {
      callPrivateMethod();
  }
  
  private static void callPrivateMethod(){
  }
  </code></pre>