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 are scalar data types?
How to use string tokenizer class.
What are the different approaches to implement a function to generate a random number?
How does multithreading take place on a computer with a single cpu in java programming?
Is treeset sorted in java?
Is arraylist ordered in java?
Is java a virus?
Can we clone singleton object in java?
What are constants?
Explain the JDB in depth & command line.
Which programming language is most secure?
How many bytes is a string?
What restrictions are placed on method overriding in java programming?
What is set in java?
What are recursive functions?