What is the difference between System.out and System.err ?

System.out and System.err both represent the monitor by default and hence can be used to display normal messages and results but System.out is used to display normal messages and results whereas System.err is used to display error messages.

No comments:

Post a Comment