While reading about Java I/O, i realized that there are two ways through which i can write to the standard output.
Following is the snippet that uses both the techn
Use:
System.out.println("Method 1");
It is a static call which is faster than the other option. Plus, you don't create any additional object such as PrinterWriter object in the second option.