Java SE 11 Developer (1Z0-819) — Question 164

Which two can be considered good practices for serializing Java objects? (Choose two.)

Answer options

Correct answer: B, D

Explanation

Option B is correct because it is essential for the class definition to remain consistent to ensure proper deserialization. Option D is also correct as implementing secure serialization techniques such as hashing or encryption is crucial for protecting serialized data. Options A and C are not necessary best practices, and option E is more about a use case rather than a good practice.