explain System.out.println

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is list thread safe in java?

588


Write a program to print 15 random numbers using foreach of java 8?

632


Explain about collection interface in java?

640


What is an example of character?

663


How do you initialize an arraylist in java?

607






How many bits is a double?

640


Does substring start with 0?

641


how to create daemon thread in java?

702


Java.util.regex consists of which classes?

630


What is the difference between scrollbar and scrollpane?

704


What is a char in java?

618


Why java strings are immutable in nature?

690


How do you add spaces in java?

609


How do you define a variable?

621


What is the synchronized method modifier?

692