I was going through the internal implementation of System.out.println().Though I understood how this is working but couldn't figure out :
- Why they decided to use the
Systemclass in the first place. They could have directly used
PrintStreamclass which is present in theiopackage.What is the significance of the syntax
className.referenceVariable.Methodname, since we generally don't use this. Is there any specific reason for this.
Can anybody elaborate on these points or any related information would be great.