- Trending Categories
- Data Structure
- Operating System
- C Programming
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
What is the difference between Externalizable and Serializable interfaces in Java?
85 Lectures 6 hours
Externalization is used whenever we need to customize serialization mechanism. If a class implements an Externalizable interface then, object serialization will be done using writeExternal() method.
Whereas at receiver’s end when an Externalizable object is a reconstructed instance will be created using no argument constructor and then the readExternal() method is called.
If a class implements only Serializable interface object serialization will be done using ObjectoutputStream. At the receiver’s end, the serializable object is reconstructed using ObjectInputStream.
- What is the difference between interfaces and abstract classes in Java?
- What is Externalizable in Java?
- Difference Between Packages and Interfaces in Java
- Difference between Parcelable and Serializable in android
- Difference between Parcel able and Serializable in android
- What is the difference between Java and Core Java?
- What is the difference between Java and Java EE
- What is the difference between /* */ and /** */ comments in Java?
- What is the purpose of interfaces in java?
- What is the difference between compositions and aggregations in Java?
- What is the difference between abstraction and encapsulation in Java?
- What is the difference between transient and volatile in Java?
- What is the difference between Serialization and Deserialization in Java?
- What is the difference between System.out.println() and System.out.print() in Java?