The interface must extends the interface NetObj:
public interface PingServer extends NetObj { public String ping() throws NetException; } All the methods must throw NetException.
public interface PingServer extends NetObj { public String ping() throws NetException; }