What is the difference between getActionCommand() And getSource() on event object?

This question is related to Oracle Interview

Showing Answers 1 - 1 of 1 Answers

Shirshendu

  • Sep 14th, 2006
 

The getActionCommand() method returns an String associated with that Component set through the setActionCommand(), whereas the getSource() method returns an Object of the Object class specifying the source of the event.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions