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 can u increase the heap size in the memory?

554


What are loops in java? What are three types of loops?

551


What is flush () in java?

559


What does || mean in code?

545


Is it possible for yielded thread to get chance for its execution again ?

554






How many types of the indexof method are there for strings?

491


Which class is used by server applications to obtain a port and listen for client requests?

493


What’s a deadlock?

612


Is char a data type in java?

545


Can an interface implement another interface?

576


What are the main uses of this keyword?

601


What are three ways in which a thread can enter the waiting state in java programming?

686


Is the empty set a singleton?

543


Which package has light weight components in java programming?

678


How do you find the independent variable?

519