|
|
|
|
|
by kyllo
4189 days ago
|
|
It honestly hadn't occurred to me that printing to stdout could fail, or that I'd need to check its return value to ensure it was successful. Can you think of an situation where that might happen? And if so, why doesn't println throw an exception? On the other hand, a side effect like writing to a file or inserting to a database can easily fail, but those of course throw exceptions. |
|