To associate an event listener with a JButton component, you must use the with a JButton component, you must use the method of the JButton class Select one: O a. addEventlistener. 0 b. addAction21stener. O c. addButtonListener O d. addlListener Which of the following statements about an interface is true? Select one: a An interface has methods and instance variables 0 b An interface has methods but no instance vaniables o c. An interface has neither methods nor instance variables o d An interface has both public and private methods o a Java generics enable what desirable feature? l code reuse Il reduction of programming errors Ill increased program speed Select one c I and iII 1:09 EN Ill and II Solution Answers 1. To associate an event listener with a JButton component, you must use the ________ method of the JButton class ans) b. addActionListener, this implements the action listener of the interface. 2. Which of the following statements about an interface is true? ans) b. An interface has methods but no instance variables, variables in interface are by default declared as public, static and final, so you cannot call them instance variables. 3. Java generics enable what desirable feature? ans) a. code resuse, generics can be reused. 4. Which Java generic programming technique requires the programmer to use casting to access variables stored as Object types? ans) c. III, inheritance is the generic technique which require the programmer to use casting to access variables stored as Object types..