Which classes will allow the following to compile?InputStream is = new BufferedInputStream(new FileInputStream("zoo.txt"));InputStream wrapper = new ________________ (is);A. BufferedInputStreamB. FileInputStreamC. BufferedWriterD. ObjectInputStreamE. ObjectOutputStreamF. BufferedReader

Respuesta :

Answer:

The answer is "Option A and option D".

Explanation:

In the given java program code, an InputStream class is used to take input from the user. In this code, the InputStream class object "is" created that uses the txt file "zoo" for input. In the next line another object of the class is created that is "wrapper" that uses a "BufferedInputStream and ObjectInputStream" for wrapped twice, It is high-level streams which takes other high-level streams, and other options are wrong that can be defined as follows:

  • In option B, It is not correct because it is the class name.
  • Option C and option F is not correct because both are a part of the input stream.

ACCESS MORE