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
List primitive java types?
What is the main difference between java platform and other platforms?
What do you mean by object?
Which is better 64 bit or 32 bit?
Can we override static methods in java?
What is the importance of finally block in exception handling?
Class c implements interface I containing method m1 and m2 declarations. Class c has provided implementation for method m2. Can I create an object of class c?
What are the two ways to create a thread?
When should the method invokelater() be used?
What is final keyword?
Can we pass null as argument in java?
What is the return type of the main method?
What is substring in java?
What is treeset in java?
Can you override static methods?