< Java Programming < Keywords

interface is a Java keyword. It starts the declaration of a Java Interface.

For example:

public interface SampleInterface
{
   public void method1();
   //...
}

See also:

This article is issued from Wikibooks. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.