Added Java serialization example.
Added Java serialization example.