Difference between ?System.out.println?
and ?System.error.println??

Answer Posted / narendrakumar

System.out.println(""); are used for displaying the data on
the console monitor and also send the data to the files...

But In System.err.println(""); mainly used for displaying
the err msg on the console monitor(stderr(standard
error))But we
cannot send the data to the file...only console monitor

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

2) Suppose there are 5 directories having lot of files (say txt files) in each directory. 2 things :- 2.1) You want to search for filenames which have a particular pattern. 2.2) Out of these filtered files you want to search for a particular keyword or a search string. How can you achieve this?

2088


What is the tradeoff between using an unordered array versus an ordered array?

948


What does a void function return?

777


Implement 2 stacks with just 1 array. The stack routines must not indicate overflow unless every slot in array is used.

1087


What is "this" keyword in java? Explain

892


What is broken and continue statement?

778


What are the states of thread in java?

735


What are different ways of object creation in java ?

803


What is wrapper class html?

734


What is finally block?

776


Can I import same package/class twice?

716


What is the synchronized method modifier?

886


What is static import in java?

757


What are the types of methodology?

792


What is the default execution method in java?

880