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
Is list thread safe in java?
Write a program to print 15 random numbers using foreach of java 8?
Explain about collection interface in java?
What is an example of character?
How do you initialize an arraylist in java?
How many bits is a double?
Does substring start with 0?
how to create daemon thread in java?
Java.util.regex consists of which classes?
What is the difference between scrollbar and scrollpane?
What is a char in java?
Why java strings are immutable in nature?
How do you add spaces in java?
How do you define a variable?
What is the synchronized method modifier?