Solved

What Does the Following Statement Do? Image Puppy = New

Question 35

Multiple Choice

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


A) It creates an instance of the ImageView class with the terrier. jpg file passed to the constructor.
B) It loads an image named "images\terrier. jpg" and stores the image in the Image variable.
C) It loads an image file named terrier. jpg 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

Unlock this Answer For Free Now!

View this answer and more for free by performing one of the following actions

qr-code

Scan the QR code to install the App and get 2 free unlocks

upload documents

Unlock quizzes for free by uploading documents