Why did they pass the src object to FileInputStream?
Because FileInputStream
will need a File
to instantiate. src
is an instance of File
.
Why did they pass FileInputStream object to xssfworkbook?
Because XSSFWorkbook
needs a FileInputStream
to instantiate. fis is a FileInputStream
.
Why they did’nt pass any objects for xssfsheet?
Because the sheet can be retrieved from wb
using getSheetAt
.
solved Can someone please explain technically the functionality of the below code [closed]