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/
throws
try
Generally it is a bad idea to do heavy lifting in constructors: in many languages, you'll be restricted anyhow in what can be done about exceptions during construction.