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

What is the function of static in java?

535


4.1 Supply contracts (in the form of comments specifying pre- and post conditions) for the enqueue() method of the LinkedQueue class given in the Appendix. (2) 4.2 Let Thing be a class which is capable of cloning objects, and consider the code fragment: Thing thing1 = new Thing(); //(1) Thing thing2 = thing1; //(2) Thing thing3 = (Thing) thing1.clone(); //(3) Explain how the objects thing2 and thing3 differ from each other after execution of the statements. (

1404


What is main difference between variable and constant?

517


Which software is used for java programming?

546


What is the difference between quicksort & mergesort? When should they be used? What is their running time?

645






How do you identify independent and dependent variables?

498


When throws keyword is used?

574


Can we use this () and super () in a method?

525


What is jvm? Why is java called the platform independent programming language?

538


Why is string builder not thread safe?

585


Can a constructor be made final?

653


What is an array length?

490


What is a nested structure?

527


What is difference between fileinputstream and filereader in java?

551


What do you mean by light weight and heavy weight components?

547