Java Excel API (a.k.a. JXL API) allows users to read, write, create, and modify sheets in an Excel (.xls) workbook at runtime. It does not support .xlsx format.
Java Excel API supports Excel documents with versions Excel 95, 97, 2000, XP, and 2003. These documents hold the extension .xls.
Java Excel API is widely used with Selenium.
Sample code to write to an Excel file might look like as follows: