When you use the getSource method with an ActionEvent object

When you use the getSource() method with an ActionEvent object, the result is           .

a. an Object

b. an ActionEvent

c. a Component

d. a TextField

Solution

a.an Object

The ActionEvent class with implementation of ActionListener interfase that handlkes the source of event at run time of the java program

The getSource method returns the object type and check whether it is specifictype of event and performs the action performed method

Therefore, getSource method returns Object type

When you use the getSource() method with an ActionEvent object, the result is . a. an Object b. an ActionEvent c. a Component d. a TextFieldSolutiona.an Object

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site