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
What is the function of static in java?
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. (
What is main difference between variable and constant?
Which software is used for java programming?
What is the difference between quicksort & mergesort? When should they be used? What is their running time?
How do you identify independent and dependent variables?
When throws keyword is used?
Can we use this () and super () in a method?
What is jvm? Why is java called the platform independent programming language?
Why is string builder not thread safe?
Can a constructor be made final?
What is an array length?
What is a nested structure?
What is difference between fileinputstream and filereader in java?
What do you mean by light weight and heavy weight components?