Hello,
I want to know the difference between println() and write() methods used in java servlet.
out.println("Hello");
out.write("Hello");
How the above code will be stored??
Why can we use both the methods for the writing the same text as above..
1.out.write(“”) method is for java.io.Writer it is used to write the any file like text,csv.
2.out.println(“Hello”) this one is servlet method and it is use for write data on browser.