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