Multiple Choice
Insert the missing code in the following code fragment. This fragment is intended to read binary data. public static void main(String[] args) throws IOException
{
String address = "http://horstmann.com/bigjava.gif";
URL imageLocation = new URL(address) ;
InputStream in = _________;
) . .
}
A) new Scanner("http://horstmann.com/bigjava.gif")
B) new Scanner(imageLocation)
C) new imageLocation.openStream
D) imageLocation.openStream()
Correct Answer:

Verified
Correct Answer:
Verified
Q70: Consider the following code snippet. Scanner in
Q71: The Scanner class's _ method is used
Q72: Which of the following statements about exception
Q73: Consider the following code snippet: Scanner in
Q74: If the current method in a program
Q76: Consider the following code snippet: public double[]
Q77: Insert the missing code in the following
Q78: Consider the following code snippet: Scanner in
Q79: Which of the following statements about a
Q80: Select the missing expression in the code