A ______ block can be used to define customized serialization logic.

  • finalization
  • synchronized
  • try-catch
  • writeObject
In Java, the writeObject block is used to define customized serialization logic for an object. It allows you to control how an object is serialized when it's written to an output stream. The other options are not used for custom serialization logic.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *