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 the basic interfaces of java collections framework?
How does queue work in java?
Which is dependent variable?
What is sizeof in java?
Is java 1.7 the same as java 7?
Explain about assignment statement?
Can static methods access instance variables in java?
Is assembly language a low level language?
What is callablestatement? How you can call stored procedure to pass in parameter?
What is string builder in java?
How do you replace a string in java?
Give me an example of array and linked list? Where they can be used?
What is immutability in java?
What is bubble sort in java?
What is the full form of jpeg?