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
PrintWriter's implementation communicates the difference better than javadoc
PrintWriter
public void print(String s) { if (s == null) { s = "null"; } write(s); }