Serialization of an object in Java : <p>we have an object as following,</p>

<p>[user_id,name,email,password]</p>

<p>1- How can we serialize this object?<br>
2- How can we serialize user_id,name,email part only?<br>
That means I dnt want serialize password field.</p>
