If you know you're reading an Excel 2007 file, using the XSSFWorkbook constructor means having an XSSFWorkbook object, which has some additional features that aren't available in the Workbook interface. If you go the WorkbookFactory.create route, you can always cast to an XSSFWorkbook.
Likewise, you could do the same with HSSFWorkbooks for Excel 2003 files. The Quick Guide does a pretty good job showing you how to use POI. https://poi.apache.org/spreadsheet/quick-guide.html On 29 Oct 2015 9:44 p.m., "Rohit Cha" <[email protected]> wrote: > What is advantage of using HSSF for reading exel(2007) files over > WorkFactory.create() >
