
XSSFWorkbook: It is a class representing the XLSX file.HSSFCell: It is a class representing a cell in a row of XLS file.HSSFRow: It is a class representing a row in the sheet of XLS file.HSSFSheet: It is a class representing the sheet in an XLS file.HSSFWorkbook: It is a class representing the XLS file.HSSFCell and XSSFCell implement Cell interface. It is a high-level representation of a cell in a row of the spreadsheet.

There are two concrete classes: HSSFRow and XSSFRow.

We have to rely on the third-party library that is Apache POI. JDK does not provide direct API to read or write Microsoft Excel or Word document. In Java, reading excel file is not similar to read word file because of cells in excel file. In this section, we are going to learn how we can read data from an excel file.

#IMPORT DATA FROM EXCEL TO EXCEL DEPENDING ON DATE HOW TO#
Next → ← prev How to Read Excel File in Java
