title: String memory allocation in java
body: <p>In an Servlet class, I am having the checks</p>
  
  <p>if("Mail".equals( request.getParameter(mode)) || "Chat".equals( request.getParameter(mode)))
  {}</p>
  
  <p>My question is about the memory allocated for the strings "Mail" and "Chat". Will it create new string objects for every request to this servlet. What about GC?.</p>