Java / Exception
Can we have an empty catch block?
We can have an empty catch block but its a bad practice. Never have an empty catch block as if the exception is caught by that block, we will have no information about the exception and it wil be difficult to debug it. There should be at least a logging statement to log the exception details in log files.
More Related questions...