Antony Raj wrote:
Here my question is, Is calling printStackTrace() costs some performance?
Brendan Kim wrote:I'd like to pinpoint that the method is threadsafe meaning 'synchronized' is put, which is why it's costly.
Jayesh A Lalwani wrote:Pshaw! In most cases, the cost of throwing an exception is going to be much higher than printing the exception!