Fix the bank account

Report a typo

Here's a class:

public class BankAccount implements Serializable {
    String name;
    transient String accountNumber;

    private void writeObject(ObjectOutputStream oos) throws Exception {
        ________________
        String encryptAccNumber= encrypt(accountNumber);
        oos.writeObject(encryptAccNumber);
    }
}

Which of the following lines should be instead of the blank one?

Select one option from the list
___

Create a free account to access the full topic