How will you display the errors in a separate file and output in a console in Java with code

Questions by ruchidurga

Showing Answers 1 - 3 of 3 Answers

sbarik

  • May 12th, 2007
 

Reassign the standard error stream of java by using following method of System class
public static void setErr(PrintStream err)

then you print error messages by writting

System.err.println("!!!!Error!!!");

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions