Yes, You have created a annonymous inner implementation class of ActionListener
interface. And instantiate it and assigned to closeAction
variable
In short we can say that an anonymous class is an inner class that does not have a name at all. And whose instance is being created at the time of its creation. Check here for more details.