Does this code mean My class implements ActionListener by overrriding actionPerformed method.
Sort of. It becomes an ActionListener by having an actionPerformed method AND by declaring that it implements the ActionListener interface.
How did my class became a ActionListener even though i have not declared my class as such.
Yes, you have - look at line 11.