Vishal Hegde wrote:is PrintWriter a class if yes how come its now declared as
PrintWriter out=new PrintWriter();
I think you are talking within the context of JSP? Then "out" (which is of type JspWriter ), one of the implicit variables in JSPs are declared and initialized for you in the translation phase of the JSP.
i am new to advanced java and its really confusing is there any ebook which is available free for me because to print a simple hello world i am finding it difficult to understand the basic of this stuff i even searched for advanced java for dummies but was of no use