单项选择题

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

相关考题