What is System.out.println() ?..
Shortly. ...
👉System:- system is a class which present inside java.lang pkg
👉Out:- out is a static variable present in System class of type PrintStream
✔Ex:-
class System {
private static PrintStream out;
}
class System {
private static PrintStream out;
}
👉println():-println() is a method which is present in side PrintStream class
✔Ex:-
class PrintStream{
Void print(){}
void println(){}
}
class PrintStream{
Void print(){}
void println(){}
}
Comments
Post a Comment