What is the purpose of implementing the Serializable interface in a Java class?
Serializable
To ensure the class can only contain primitive data types
To make the class compatible with generic data structures
To allow instances of the class to be written to a binary stream
To enable the class to perform complex mathematical operations