What is the difference between actionPerformed(ActionEvent ae)
and (ActionEvent e)
in Java?
Asked
Active
Viewed 56 times
0

Joachim Sauer
- 302,674
- 57
- 556
- 614

user13743709
- 1
- 1
-
1There is no difference. You can use whatever you want for the parameter names. – Mata Prasad Chauhan Aug 09 '20 at 07:20
-
Did you check the [documentation](https://docs.oracle.com/javase/7/docs/api/java/awt/event/ActionEvent.html)? – Arvind Kumar Avinash Aug 09 '20 at 07:20
-
Also, duplicate of https://stackoverflow.com/questions/31216051/what-does-actionevent-e-mean – Arvind Kumar Avinash Aug 09 '20 at 07:21
-
2You are free to give a variable whatever name you prefer. `e` or `ae` or `event` or `foo` or `dog`, all valid. – Zabuzard Aug 09 '20 at 07:23