You know of course that it is bad practice to have code like
?
First of all, NEVER EVER just catch an exception and ignore it. The least
you should do is print / log it - a simpel ex.printStackTrace() would be better than nothing at all.
Second, catching Exception or Throwable is also not recommended. You know which exceptions can be thrown (IOException for the reading, ClassCastException for the casting and ClassNotFoundException if the class read cannot be found), so catch them separately.