title: Java - Default contentType for Servlet
body: <p>In servlet, normally we will specify a contentType, then we can print out the html code. </p>
  
  <pre><code>response.setContentType("text/html");
  PrintWriter out = response.getWriter();
  </code></pre>
  
  <p>What IF, we don't specify a contentType, any contentType will be set default? I did a test by adding <code>response.setContentType("text/html");</code>, then remove after it, but my website able to render the html? Why is that? </p>