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

What does || mean in vectors?

711


Define inheritance?

787


What is collection class in java?

731


Explain the importance of throwable class and its methods?

792


What is an interoperable application in java ?

768


What are the three types of design patterns?

738


Can an interface implement another interface?

782


How can we make sure main() is the last thread to finish in java program?

943


What is bufferedwriter?

748


Write a java program to find the route that connects between Red and Green Cells. General Rules for traversal 1. You can traverse from one cell to another vertically, horizontally or diagonally. 2. You cannot traverse through Black cells. 3. There should be only one Red and Green cell and at least one of each should be present. Otherwise the array is invalid. 4. You cannot revisit a cell that you have already traversed. 5. The maze need not be in the same as given in the above example

2334


what is thread? What are the high-level thread states? : Java thread

1022


Why we do exception handling in java and how many types of exceptions are there?

785


How to sort array of 0 and 1 in java?

743


What is the difference between arraylist and hashset in java?

772


What is gui programming?

725