explain System.out.println
Answer Posted / dipanjan paul
//--There was a slight mistake in my previous post--below
is the corrected one--//
'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 instantiated)
'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 ? | 4 Yes | 0 No |
Post New Answer View All Answers
What if constructor is protected in java?
Explain method overloading?
What is an off by one error in java?
Is it possible to override the main method?
Explain java coding standards for classes or java coding conventions for classes?
how to one war file class to another war file class?
What modifiers are allowed for methods in an interface?
What are the advantages of functions?
What is internal iteration in java se 8?
What is the difference between jfc & wfc?
How to display all the prime numbers between 1 and n (n is the number, get the input from user)
What is floor in java?
What is a numeric literal?
What is the purpose of the strictfp keyword?
What is update method called?