Here:
System.out.println("Hi, this is frist program");
Is println()
a static member function of PrintStream
class or instance member function?
As told by my teacher : that when there is dot (.
) after class name then definitely we are trying to access the static member of the class.
As here out is static reference variable and it has reference of PrintStream class. So my question is that is the println()
function has necessarily to be a static member function?