Saturday, 31 August 2013

Should I throw an exception or print out an error statement in a program?

Should I throw an exception or print out an error statement in a program?

I have my program working and all done (java). It's a short and easy
program for a job interview. I handle stuff like improper input format by
throwing a custom exception. Is that the best way to do it or should I
just make a print statement?

No comments:

Post a Comment