Java   View all facts   Glossary   Help
specification > interface > Serializable
Next interfaceIterator    Upinterface    Previous interfaceRunnable   

Serializable
subjectfact 
Serializableallows reading and writing of objects to filesadded by: JK, source: On To Java, 2001-10-19 11:37:52.0
has specification    2001-10-19 11:37:52.0
is implemented by Vector classadded by: JK, source: On To Java, 2001-10-19 11:37:52.0
is a subtopic of Example Interfaces2001-10-19 11:37:52.0
is a subtopic of Object Serialization2001-10-19 11:37:52.0
is an instance of interfaceadded by: JK, source: On To Java, 2001-10-19 11:37:52.0
interfacecan contain abstract methods2001-10-19 11:36:59.0
can extend 1 or more interfaces    2001-10-19 11:36:59.0
defines a set of methods2001-10-19 11:36:59.0
has example
public interface Drawable
{
public abstract Image drawImage();
public abstract Image drawImage(int height, int width);
public abstract Image drawBlackAndWhiteImage(int height, int width);
}
2001-10-19 11:37:00.0
has part interface definition2001-10-19 11:37:00.0
has purpose    2001-10-19 11:37:00.0
has syntax
public interface InterfaceName extends SuperInterfaces
{
InterfaceBody
}
2001-10-19 11:37:00.0
inherits all constants and methods from its superinterfaces    2001-10-19 11:37:00.0
is like a class except that it does not have any executable statements - it only contains abstract methods and class variables    2001-10-19 11:37:00.0
is abstract by definition - the modifier is optional in the declaration2001-10-19 11:37:00.0
is a member of the default package unless its source file contains a package statement2001-10-19 11:37:00.0
is only accessible to classes that are defined in the same package unless the interface is public    2001-10-19 11:37:00.0
is compiled by the Java compiler into a .class file2001-10-19 11:37:00.0
is implemented by 1 or more class2001-10-19 11:37:00.0
may have access modifier public, or none2001-10-19 11:37:00.0
provides many of the same benefits as multiple inheritance    2001-10-19 11:37:00.0
should be a member of 1 named package2001-10-19 11:37:00.0
access unithas access mode2001-10-19 11:35:59.0
syntactic unithas syntax rule
bold = mandatory
italic = non-terminal
normal font = optional
2001-10-19 11:38:04.0

Next interfaceIterator    Upinterface    Previous interfaceRunnable