SCJP 5.0, SCWCD 5.0, SCBCD 5.0, SCJD, SCEA in progress
Ulises Pulido wrote:Is correct because InputStream is a superclass of FileInputStream.
You can assign directly a reference of a child class to a parent class.
As far as I know there are not such classes you are asking for
But there are FileReader and FileWriter.