I have to initialize file objects inside the constructor and for handling the exception, is it efficient using throws
or should I go for try
/
Of course you can and throwing an exception is actually what I would do (instead of swallowing it in the constructor). You want to let the caller know that something unexpected happened, you don't want to return a non properly initialized instance. That said, it may be a sign that you are doing too much things in the constructor.