Question 20
The label will change to “Clicked” when the button is clicked
The label remains “Initial”
The code throws a runtime error
The button will disappear after clicking
The label will change to “Clicked” when the button is clicked
The label remains “Initial”
The code throws a runtime error
The button will disappear after clicking
Correct answer
The label remains “Initial”
Question 20 of 24 in the IIT Madras BS Programming Concepts using Java (Java) End Term paper sat on 31 Aug 2025, in the May 2025 term (IIT M DEGREE AN EXAM QDB4 31 Aug 2025). It carries 6 marks.