Solved

Insert the Missing Code in the Following Code Fragment

Question 21

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 = _________;
InputStream in = imageLocation.openStream() ) ;
) . .
}


A) new Scanner("http://horstmann.com/bigjava.gif")
B) new Scanner(address)
C) new imageLocation.openStream
D) new URL(address)

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions