littledeer1974
Garbage Collector
CJSDN高级会员
发贴: 1517
|
于 2004-10-15 16:01
Printing to the console window is iffy, at best, in enterprise Java. In fact, there are times when you cannot use the console at all, such as when you write EJB code. At other times, you may be writing a library for others to use, and not have any idea of what the runtime environment is. Therefore, since one of your prime goals should be to promote reusability, you cannot count on the console always being around. The solution to the problem is to keep throwing those exceptions.
thanx in advance
Surround yourself with people who are open to change
|