Java View all facts Glossary Help |
| specification > interface > Iterator |
| Iterator | ||||
| subject | fact | |||
| Iterator | has example //counts the number of empty strings in a collection of strings | ![]() |
has remove method that allows you to selectively delete elements of the underlying collection ![]() | ![]() | |
| is a subtopic of Example Interfaces | ![]() | |
| is an instance of interface | ![]() | |
| interface | can contain abstract methods | ![]() |
can extend 1 or more interfaces ![]() | ![]() | |
cannot have any concrete methods or instance variables ![]() | ![]() | |
| defines a set of methods | ![]() | |
| has 1 fully qualified name that includes its package name | ![]() | |
| has 1 simple name that does not include its package name | ![]() | |
| 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 1 or more superinterfaces | ![]() | |
| 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: Runnable Up: interface Previous interface: Serializable