Is this static println
function in out
class from System
namespace?
namespace System { class out { static println ... }
How can I interpret this name? And where in JRE this function is defined? In java.lang.System
/java.lang.Object
?
Is this static println
function in out
class from System
namespace?
namespace System { class out { static println ... }
How can I interpret this name? And where in JRE this function is defined? In java.lang.System
/java.lang.Object
?
System
- class which isfinal
in nature.public final class System{}
. Belongs tojava.lang
packageout
-static
reference variable of typePrintStream
println()
- nonstatic
method inPrintStream
class.PrintStream
belongs tojava.io
package.To understand it better you can visit : How System.out.println() Works In Java
System is the java class.
out is the instance and also static member of PrintStream.
println is the method of PrintStream.
System
- is a class injava.lang
pacakge.out
is astatic
data member ofSystem
class and references a variable ofPrintStream
Class.System
is a class ofjava.lang
package,out
is an object ofPrintStream
class and alsostatic
data member ofSystem
class,print()
andprintln()
is an instance method ofPrintStream
class. it is provide soft output on console.•
System
is a class injava.lang
package•
out
is astatic
object ofPrintStream
class injava.io
package•
println()
is a method in thePrintStream
classSystem
is a class injava.lang
package.out
is the static data member inSystem
class and reference variable ofPrintStream
class.Println()
is a normal (overloaded) method ofPrintStream
class.