99色精品-9色在线-99色在线-99色视频 国产欧美日产一区二区三区_亚洲精品亚洲人成在线观看_四虎在线精品永久观看_免费一级a一片久久精

單項(xiàng)選擇題

Assuming that the serializeBanana() and the deserializeBanana() methods will correctly use Java serialization and given: 
import java.io.*; 
class Food implemertts Serializable {int good = 3;} 
class Fruit externds Food {int juice = 5;} 
public class Banana extends Fruit { 
int yellow = 4; 
public static void main(String [] args) { 
Banana b = new Banana(); Banana b2 = new Banana(); 
b.serializeBanana(b); // assume correct serialization 
b2 = b.deserializeBanana(); // assume correct 
System.out.println(”restore “+b2.yellow+ b2.juice+b2.good); 
} 
// more Banana methods go here 
} 
What is the result?() 

A. restore 400
B. restore 403
C. restore 453
D. Compilation fails.
E. An exception is thrown at runtime.

題目列表

你可能感興趣的試題

微信掃碼免費(fèi)搜題