-2

1].What is the difference between Serializable, Parcelable?

2].Can I implement Both Interfaces in Pojo Class?,If answer is No,what is the reason for that?

kavie
  • 2,154
  • 4
  • 28
  • 53
  • 1
    http://stackoverflow.com/questions/3323074/android-difference-between-parcelable-and-serializable http://stackoverflow.com/questions/11077907/what-is-difference-between-parcelable-and-serialization-used-in-android http://stackoverflow.com/questions/5550670/benefit-of-using-parcelable-instead-of-serializing-object – Breavyn Sep 23 '15 at 13:26

1 Answers1

2

Parcelable and Serialization are used for marshaling and unmarshaling Java objects.

More details : http://www.developerphil.com/parcelable-vs-serializable/

  • thanks for your reply.from this link i came to know that implementing either one interface is Enough...am i right? – kavie Sep 23 '15 at 13:30
  • Yes.. jfyi : but for Android Parcelable is better in Android developement –  Sep 23 '15 at 13:31
  • how come u saying Parcelable is better in Android..Only difference I found between those two is "Speed Issue"..other than this anyother reason is there? – kavie Sep 23 '15 at 13:32
  • Yes.. Main thing is speed because it's is specially created for android also. And it's also improve performance b'cz it's speedy. –  Sep 23 '15 at 13:36