System.out.println()---in this printing statement why we use (.)i.e dot inbetween ?
System.out.prin tln()---in this printing statement why we use (.)i.e dot inbetween system.out and out.println?
please reply
this question was asked in viva session
when putting a dot after the System, i means to say if the System class has a static field or method, you may use it through System."static_ field/method"
The System has a PrintStream called out, it is public so it can be invoked.
Comment