In my servlet I gave both out.print and out.write. but both prints in the browser.
out.print
out.write
What is the exact difference between these two and when
I simply know it as like this:
out.println() is method of javax.servlet.jsp.JspWriter
out.println()
javax.servlet.jsp.JspWriter
out.write() is method of java.io.Writer
out.write()
java.io.Writer