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

How does split work in java?

524


Can we write a class without main method in java?

467


What is a short in java?

487


What are heap memory and stack memory and what are memory tables.

494


What is the purpose of the enableevents() method?

569






How to check if a list is sorted in java?

574


What are the steps involved to write rmi based programs?

555


What does indexof return in java?

523


How do you escape a string?

494


What is application system?

490


Explain about instanceof operator in java?

594


How does enum work in java?

532


What is a char in java?

523


How do you replace a string in java?

532


Name few "optional" classes introduced with java 8 ?

633