Quiz
After the LottoMadness program has soured you on games of chance, play a game of skill by answering the following questions.
Questions
1: | Why are action events called by that name?
|
2: | What does this signify as the argument to an addActionListener() method?
|
3: | Which component stores user input as integers?
|
Answers
A1: | b. Action events include the click of a button and the selection of an item from a pull-down menu. |
A2: | c. The this keyword ... |
Get SAMS Teach Yourself Programming with Java™ in 24 Hours, FOURTH EDITION now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.