To serialize an object in Java, a class must implement the Serializable interface. When an object is serialized, its state is converted into a byte stream, which can be saved or transmitted. In the given question, both statements are true. So the correct answer is option c) Both statements are true.
Para escrever sua resposta aqui, entre ou crie uma conta
Compartilhar