Solved

What Will Be Displayed When the Following Code Is Executed

Question 11

Multiple Choice

What will be displayed when the following code is executed?
JLabel myLabel = new JLabel ("It's a beautiful morning!") ; myLabel.setIcon(SunnyFace.gif) ;


A) A label will be displayed with the text "It's a beautiful morning!" appearing below the SunnyFace.gif image.
B) A label will be displayed with the text "It's a beautiful morning!" appearing above the SunnyFace.gif image.
C) A label will be displayed with the text "It's a beautiful morning!" appearing to the left of the SunnyFace.gif image.
D) A label will be displayed with the text "It's a beautiful morning!" appearing to the right of the SunnyFace.gif image.

Correct Answer:

verifed

Verified

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

Related Questions