- System.class contains "out" and "err" object of Printstream class.
- System.class is declared static.
- println() is a overloaded method in Printstream class which have (out and err objects)
if we execute System.out.println("Xys"); and System.err.println("Fdfd");
They both should work Exactly the same as out and err are the objects of the same class except for the fact that they don't.
Why out.println() prints in black and err.println() prints in red.