Java Reference
In-Depth Information
The process of converting an object in memory to a sequence of bytes and storing the sequence of bytes in a
storage medium such as a file is called
object serialization
. The process of reading the sequence of bytes produced
by a serialization process and restoring the object back in memory is called
object deserialization
. Java supports
serialization and deserialization of object through the
ObjectInputStream
and
ObjectOutputStream
classes. An
object must implement the
Serializable
interface to be serialized.
The Java I/O API provides the
Console
and
Scanner
classes to interact with the console.
You can use the
StringTokenizer
and
StreamTokenizer
classes to split text into tokens based on delimiters.
The
String
class contains a convenience method
split()
to split a string into tokens based on a regular expression.