K&B book, Page 507, #15 the answer is C,F. I am wondering the statement F is true or not:
F. In order to alter the standard deserialization process you would override the readObject() method in SpecialSerial.
The readObject() method signature would be:
I think the statement violate the override rules: 1.There is no super class have this method, no in Serializable 2.private method not inherit, so can't be override 3.override method can't have less accessable
Hi Anthony, You may write the code in wrong way, the return type is Object, so you need to explicitly cast. The list1.toArray(T) use the parameter as the array to store or use it as Type info to generate new array. so the code should be:
And array in Java is fixed size, size 0 is a size.