View this PageEdit this PageAttachments to this PageHistory of this PageHomeRecent ChangesSearch the SwikiHelp Guide

Declare an interface

To declare an interface in Java use:

public interface InterfaceName {

public interface InterfaceName

Interfaces can only include constants and abstract methods. They can
not contain constructor, fields, and methods with code.

Link to this Page