setText() method can set or change the text in a Label - AWT and Swing

Q.  Which method can set or change the text in a Label?
- Published on 20 Jul 15

a. setText()
b. getText()
c. All the above
d. None of the above

ANSWER: setText()

Post your comment / Share knowledge


Enter the code shown above:
 
(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)