This code is a part of simple HelloWorld Servlet file . Can anyone please explain the highlighted statement ....


public void doGet(HttpServletRequest req, HttpServletResponse rsp) throws ServletException, IOException {
rsp.setContentType("text/html");
PrintWriter out = rsp.getWriter();
out.println("<html>");


What does that statement do ??
like this