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

How to perform binary search in java?

568


What are the two ways to create a thread?

530


What is proper subset?

535


What does java edition mean?

526


What is the difference between the boolean & operator and the && operator in java programming?

562






Can memory leak happen java?

593


What are aggregate functions explain with examples?

519


What is compareto () in java?

535


What are the main uses of this keyword?

595


What is meant by anonymous class?

587


What are the two types of streams offered by java 8?

508


Can an arraylist be empty?

564


In java, how many ways you can take input from the console?

515


Why string is immutable with example?

526


How do you trim a space in java?

498