單項(xiàng)選擇題

public String makinStrings() { 
String s = “Fred”; 
s = s + “47”; 
s = s.substring(2, 5); 
s = s.toUpperCase(); 
return s.toString(); 
} 
How many String objects will be created when this method is invoked?() 

A. 1
B. 2
C. 3
D. 4
E. 5
F. 6

題目列表

你可能感興趣的試題

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