Creating Java objects using "new"
In the following method, while creating Java servlets one of the methods used (according to the book Im refering too)
doGet(HttpServletRequest req, HttpServletResponse res)
req is an object of type HttpServletRequest but one does not need to write
HttpServletRequest req = new HttpServletRequest
Even in the following method, there is no mention of new for creating PrintWriter object
PrintWriter Systemout = res.getWriter();
Im new to java and trying to understand when to use "new" AND when not to.
Thank you for your responses.