Difference between ?System.out.println?
and ?System.error.println??
Answer Posted / ranganathkini
P.S. Please correct the questions. It is not:
Difference between ?System.out.println? and
?System.error.println??
It must be:
Difference between ?System.out.println? and
?System.err.println??
The java.lang.System provides 3 static fields System.out,
System.err and System.in which represent the standard output
stream, standard error stream and standard input stream
Standard Output stream connects the program to the system
console screen and is commonly used to display informative
messages to the user.
Standard Error stream by default connects the program system
console screen and is commonly used to display error
messages to the user.
The Standard Input stream connects the program to the system
keyboard device and provides capability to the program to
read from keyboard input.
Java provides facilities by which these streams can be
redirected to other sources or destinations and change the
way the program behaves.
For example, the standard error stream can be redirected to
a output stream that writes to a log file for error analysis.
| Is This Answer Correct ? | 51 Yes | 4 No |
Post New Answer View All Answers
Is java hard to learn?
Differentiate between == and equals().
How is abstraction implemented in java ?
What is array list in java?
What does a method signature consist of?
What does the append?
Does java have a compiler?
Can we catch more than one exception in single catch block?
How do you create a reference in java?
What is the purpose of tostring() method in java?
What is the difference between the jdk 1.02 event model and the event-delegation model introduced with jdk 1.1?
Can we call the run() method instead of start()?
What is array class in java?
What is an off by one error in java?
What is hashset in java?