explain System.out.println
Answer Posted / rahul yadav
System.out.println( );
1.The System class contains several useful class fields and
methods. It cannot be instantiated.
2.System class has field out of type PrintStream class.
3.println() is a method in PrintStream class.
public static final PrintStream out
The "standard" output stream. This stream is already open
and ready to accept output data. Typically this stream
corresponds to display output or another output destination
specified by the host environment or user.
For simple stand-alone Java applications, a typical way to
write a line of output data is:
System.out.println(data)
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is broken and continue statement?
Can we call a non-static method from inside a static method?
What is difference between java and java ee?
What is sizeof () operator?
How to use arraylist in java netbeans?
What is the purpose of object oriented programming?
What is the difference between a break statement and a continue statement?
Difference between default and protected access specifiers?
How you can force the garbage collection?
What is the difference between Java1.4 and Java1.5
What is command line argument
Difference between a class and an object?
What is meant by attribute?
Explain differences between collection api and stream api?
Explain the importance of throws keyword in java?