Java View all facts Glossary Help |
specification > interface > Runnable |
Runnable | ||||
subject | fact |
Runnable | abstracts the concept of something that will execute code while it is active | |
has specification | ||
is a subtopic of Example Interfaces | ||
is a subtopic of Threads | ||
is an instance of interface | ||
interface | can contain abstract methods | |
can extend 1 or more interfaces | ||
defines a set of methods | ||
has example public interface Drawable | ||
has part interface definition | ||
has purpose
| ||
has syntax public interface InterfaceName extends SuperInterfaces | ||
inherits all constants and methods from its superinterfaces
| ||
is like a class except that it does not have any executable statements - it only contains abstract methods and class variables | ||
is abstract by definition - the modifier is optional in the declaration | ||
is a member of the default package unless its source file contains a package statement | ||
is only accessible to classes that are defined in the same package unless the interface is public | ||
is compiled by the Java compiler into a .class file | ||
is implemented by 1 or more class | ||
may have access modifier public, or none | ||
provides many of the same benefits as multiple inheritance | ||
should be a member of 1 named package | ||
access unit | has access mode | |
syntactic unit | has syntax rule bold = mandatory |
Next interface: Serializable Up: interface Previous interface: Iterator