System.out.println vs PrintWriter

I want to know the difference between them and when to use them. Is PrintWriter faster than System.out.pritnln.

NO,System.out.println will print line by line but printwriter will print word by word

I think yes, when we use PrintWriter class with autoflush being true in its constructor statement.then using its object.println makes it a bit faster.For example:-

import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.PrintWriter;

class Hello{
public static void main(String args[])throws Exception{
BufferedReader inp=new BufferedReader(new InputStreamReader(System.in));
PrintWriter out=new PrintWriter(System.out,true); //autoflush is true here.
out.println(“Hello”);
}
}