difference between System.out.println(..)and PrintWriter.println(..)
843785Jul 9 2008 — edited Jul 9 2008Hello every one
With System.out.println(..) we can print to Console.
But System.out internally creates PrintWriter object.So why cant we use
PrintWriter.println(..) directly to write to console.
Is there aany disadvvantage with PrintWriter.println(..).
If so can anyone please tell me what is that and
what is the advantage we r going to get with System.out.println(..) method of writing to console.