To create a object of 'FileInputStream', we have three different ways. (i.e. three different constructors available). We can create by passing a file name , i.e. full path of the file (e.g. C://filename.txt ) or by passing a 'File' object or by passing a 'FileDescriptor' . In this example, I will show you by passing a 'File' object to the constructor.