+ 4
In what class System.out.println(); is defined?
Just like in C++, cout and cin are defined in the header file iostream. Where is the definition of System.out.println() defined in Java?
3 ответов
+ 10
It's defined in the out member of type PrintStream type of System class.
You can always refer to the official Java Oracle Docs here:-
https://docs.oracle.com/javase/7/docs/api/java/lang/System.html
+ 4
System is final class in java.lang.System
out is an object reference of PrintStream class defined in System class as public, static, final
println() is a method of java.io.PrintStream class 💗 🙆♂️🤗
+ 3
System class