Home > DeveloperSection > Interviews > What is difference between Serializable and Parcelable ? Which is best approach in Android ?

Posted on    August-04-2015 11:42 PM

 Android Android 
 1 Answer(s)
  879  View(s)
Rate this:

Mayank Tripathi
Mayank Tripathi

Total Post:807

Posted on    August-04-2015 11:42 PM

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.

Don't want to miss updates? Please click the below button!

Follow MindStick