View RSS Feed

Recent Blogs Posts

  1. Tagging Interfaces

    by , 04-26-2012 at 07:12 PM
    Extending interfaces use which is very common occurs usually when no methods are present in the parent interface. E.g, in java.awt.event package the MouseListener interface extended the java.util.EventListener, which will be defined as following:
    Java Code:
    package java.util;
    public interface EventListener
    {}
    Interfaces that havenít any methods present are the tagging interfaces. Tagging interfaces have two main design purposes:

    A common parent is ...