Follow Our FB Page << >> for Daily Laughter. We Post Funny, Viral, Comedy Videos, Memes, Vines...

explain System.out.println

Answers were Sorted based on User's Feedback

explain System.out.println..

Answer / arun gopal

'System' is a class in java.lang package
'out' is a static object of PrintStream class in
'prinln()' is method in the PrintStream class.....

Is This Answer Correct ?    790 Yes 59 No

explain System.out.println..

Answer /

'system' is a public class which is final which can never
be extended..It itself extends object.
'out' is the static object of the class PrintStream.
'println()' is the method of printStream class..
since 'out' is a static object it can be called by using
the class name'system'
so 'Sstem.out.println()'

Is This Answer Correct ?    362 Yes 45 No

explain System.out.println..

Answer / franklin

System: its the class
out: its the object of the class System
println():its the method which tells the compiler to print
a new line.

Is This Answer Correct ?    381 Yes 273 No

explain System.out.println..

Answer / lakshmi


> pre-defined class in java.lang package
out- it is a static variable inside System class of type PrintStream(class reference variable)
(ie) static PrintStream out;
and PrintStream is a predefined class in package.
since its static thats why we are calling
so System.out means we are getting the reference to the object of type PrintStream

println is the method in PrintStream class for Standard output stream.
so to access println method , i need PrintStream object which we are getting through System.out.
so finally
its System.out.println---- to produce standard output Stream
println-method name

Is This Answer Correct ?    64 Yes 11 No

explain System.out.println..

Answer / mallikarjuna g

System : It is a standard java class. It comes from the
java.lang package. it is bydefault package.
Out : The class system contains static field named "out".
so System.out referes to the value stored in that static
filed. the value System.out is an object of the class
printStream from the standard java package
Println() : it is the instance method come from the
PrintStream class.

so System.out.println() calls the "Println()" method
associated with the "printStream" object referred to by
static field "out"

Is This Answer Correct ?    55 Yes 12 No

explain System.out.println..

Answer / chhote lal prasad gupta

System:-It is the final class and its constructor is we can not create new object of System.

out. it is the static member of the System class of type
println:-it is the overload function of PrintStream.

Is This Answer Correct ?    75 Yes 44 No

explain System.out.println..

Answer / nilesh

There is a class called System.

It has a static member attribute called "out", which is of
type PrintStream.

PrintStream provides a method called "println", which is
what you're calling.

Is This Answer Correct ?    69 Yes 41 No

explain System.out.println..

Answer / narasimha rao

System is a class
out is static object
println() is a method

Is This Answer Correct ?    37 Yes 12 No

explain System.out.println..

Answer / dipanjan paul

'System' is a class in 'java.lang' package, which is a
final class(can not be inherited) and its constructor is
private(can not be inherited)
'out' is a static member variable of 'System' class which
is of type 'PrintStream'
'println()' is a method of 'PrintStream' class
So 'System.out.println()' means calling of method 'println
()'of the static 'PrintStream' type variable 'out'
of 'System' class.
And is used to print a String to the system console.

Is This Answer Correct ?    25 Yes 13 No

explain System.out.println..

Answer / rajendra h r

System is a class

Out is a static reference of type printStream.

prinyln()is a method in the Class System.

When you say System.out.println()

u r telling compiler to print the string that u type
inside the println() method as argument on out put stream
(ie u r moniter).

Is This Answer Correct ?    18 Yes 12 No

Post New Answer

More Core Java Interview Questions

int a=1,b=10; System.out.println(a+b--);

12 Answers   HCL,

If an application has multiple classes in it, is it okay to have a main method in more than one class?

0 Answers  

what do you understand by synchronization? Or what is synchronization and why is it important? Or describe synchronization in respect to multithreading? Or what is synchronization? : Java thread

0 Answers  

Need to use public,static keywords in main function?

5 Answers  

I want to re-reach and use an object once it has been garbage collected. Define how it’s possible?

0 Answers  

Where are the local variables stored?

0 Answers  

Is null or empty java?

0 Answers  

What about method local inner classes or local inner classes in java?

0 Answers  

What one should take care of, while serializing the object?

0 Answers  

How many functional interfaces does java 8 have?

0 Answers  

How to find the index of the largest number in an arraylist java?

0 Answers  

What is arraylist class in java?

0 Answers