What is the general rule of thumb when deciding whether to add a throws clause to a method or using a try-catch?
From what I\'ve read mysel
When to use what. I searched a lot about this. There is no hard and fast rule.
"But As a developer, Checked exceptions must be included in a throws clause of the method. This is necessary for the compiler to know which exceptions to check.
By convention, unchecked exceptions should not be included in a throws clause.
Including them is considered to be poor programming practice. The compiler treats them as comments, and does no checking on them."
Source : SCJP 6 book by Kathy Sierra