Read into an array

Report a typo

Suppose you try to read from a file into an array with a capacity of 10.

byte[] bytes = new byte[10];
InputStream inputStream = new FileInputStream("file.txt");
int numberOfBytes = inputStream.read(bytes);
System.out.println(numberOfBytes); // ?

Depending on the file content, what can the program print? Select all possible options.

Select one or more options from the list
___

Create a free account to access the full topic