Hari Nagarjuna wrote:What is happening in System. out. println()??
dot(s) used to separate class name, field and method.
In this case, out is a class variable of type PrintStream which declared in the System class, while println methods is in class PrintStream.
So we need to use System.out.println to print something out in console.