WHAT IS DIFFERENCE BETWEEN SERIALIZABLE AND PARCELABLE ? WHICH IS BEST APPROACH IN ANDROID ?

Mayank Tripathi

Total Post:807

Points:4035
Posted by  Mayank Tripathi
 1261  View(s)
Ratings:
Rate this:
  1. Mayank Tripathi

    Post:807

    Points:4035
    What is difference between Serializable and Parcelable ? Which is best approach in Android ?

    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

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!