2017  Kodetalk | Feedback | Privacy Policy | Terms | About
userimage

Difference between Serializable and Parcelable and which is best approach in Android?

Difference between Serializable and Parcelable and which is best approach in Android?

userimage

Serializable is a standard Java interface. You simply mark a class Serializable by implementing the interface, and Java will automatically serialize it in certain situations.

 

Parcelable is an Android specific interface where you implement the serialization yourself. It was created to be far more efficient than Serializable, and to get around some problems with the default Java serialization scheme.

Answer is