Solved

What Will Display When the Following Code Is Executed

Question 45

Multiple Choice

What will display when the following code is executed?
JButton button =
New JButton ("It is a beautiful day.") ;
Button.setIcon(SunnyFace.gif) ;


A) A button with the text "It is a beautiful day." to the left of the SunnyFace image
B) A button with the text "It is a beautiful day." to the right of the SunnyFace image
C) A button with the text "It is a beautiful day." below the SunnyFace image
D) A button with the text "It is a beautiful day." above the SunnyFace image

Correct Answer:

verifed

Verified

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

Related Questions