Câu hỏi phỏng vấn Android
Câu hỏi

What are some difference betwee...

Câu trả lời

Here are the key differences between Parcelable and Serializable in Android:

  • Parcelable is an Android-specific interface, while Serializable is a standard Java interface[1][2].

  • Parcelable is faster than Serializable because it directly passes the object, bypassing the byte stream conversion. Serializable is slower as it involves serializing the object to a byte stream[1][3][4].

  • Parcelable objects are stored in an Android application bundle and require more time to access compared to Serializable objects which are stored in memory[2].

  • Parcelable objects are smaller in size than Serializable objects[2].

  • Parcelable requires more code to implement compared to the simple Serializable interface[1][4].

  • Parcelable supports primitive types and common collection types out of the box, while Serializable relies on Java's reflection API which can...

senior

senior

Gợi ý câu hỏi phỏng vấn

middle

What is Android Data Binding?

senior

What is the Android NDK? How can one use it? Why should one use it?

junior

What is Armv7?

Bình luận

Chưa có bình luận nào

Chưa có bình luận nào