Solved

What Does the Following Statement Do? Image Puppy = New

Question 36

Multiple Choice

What does the following statement do? Image puppy = new Image("file:C:\\images\terrier.j p g ") ;


A) It creates an instance of the ImageView class with the terrier. J p g file passed to the constructor.
B) It loads an image named "images\terrier.j p g " and stores the image in the Image variable.
C) It loads an image file named terrier. j p g which is found in the images folder on the user's C-drive.
D) Nothing; it is not possible to include a path to a file when using the Image class.

Correct Answer:

verifed

Verified

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

Related Questions