+ 4

What is 'out' in System.out.println() ?

19th Jul 2018, 10:16 AM
mn121
mn121 - avatar
3 Answers
+ 1
Hi Alexander Sokolov , but isn't out an object rather than a variable?
19th Jul 2018, 12:51 PM
Parth Salat
Parth Salat - avatar
+ 6
Hello, mn121 ! System is the last class in the java.lang package. out is a variable of the PrintStream class declared in the System class. println is a PrintStream class method. Good luck in programming on SoloLearn! https://www.sololearn.com/learn/Java/2137/
19th Jul 2018, 10:22 AM
Alexander Sokolov
Alexander Sokolov - avatar
+ 1
Alexander Sokolov ,Parth Salat i think out is an object of System class
19th Jul 2018, 1:59 PM
Tarika
Tarika - avatar