Which of the following is true about the following line of code: button.setOnClickListener({})

Which of the following is true about the following line of code: button.setOnClickListener({})
A . It sets the time and date of run process.
B . The system executes the code you write in setOnClickListener({ }) after the user presses the button.
C . It only saves changes in a text field.
D . It sets the number of clicks the user presses to run the application.

Answer: B

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments