explain System.out.println
Answer Posted / java-novice
System is a class.
out is a public static class variable of the System class.
NOTE: "out" Must be declared public. Otherwise, we cannot
access it as "System.out"
out is of type PrintStream
println is an overloaded method of PrintStream class.
(That's why println method accepts strings, boolean values
or char values)
Here is a good article on that.
http://ruchiram4.blogspot.com/2009/05/java-systemoutprintln-explained-in-oop.html
| Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
What do you understand by final value?
Tell me about your ability to work under pressure
What are the advantages and disadvantages of reference counting in garbage collection?
Define an abstract class with reference to java.
What is null object in java?
How can we pass argument to a function by reference instead of pass by value?
Can we access instance variables within static methods ?
Why is the singleton pattern considered to be an anti pattern?
Why you should not use singleton?
What is runtime locatable code?
What is printwriter in java?
What is the use of accept () method in java?
What is a prefix function.write down a code to compute prefix function.
what is mena by object block any what is the use of that
How do you insert a line break?