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
Write a regular expression to validate a password. A password must start with an alphabet and followed by alphanumeric characters; its length must be in between 8 to 20.
Why is it called buffering?
What is java and why do we need it? Explain
What is a website container?
What is floating data type?
Explain the private field modifier?
Give a practical example of singleton class usage?
Explain polymorphism citing an example.
Print Vertical traversal of a Binary Tree.
What is java util function?
Why is an interface be able to extend more than one interface but a class can’t extend more than one class?
Explain the difference between private, public, package and protected in java?
What is the technique adopted to create an immutable class?
Can a class with private constructor be extended?
What is map java?