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

單項選擇題

1. public class Target { 
2. private int i = 0; 
3. public int addOne() { 
4. return ++i; 
5. } 
6. } 
And: 
1. public class Client { 
2. public static void main(String[] args) { 
3. System.out.println(new Target().addOne()); 
4. } 
5. } 
Which change can you make to Target without affecting Client?() 

A. Line 4 of class Target can be changed to return i++;
B. Line 2 of class Target can be changed to private int i = 1;
C. Line 3 of class Target can be changed to private int addOne() {
D. Line 2 of class Target can be changed to private Integer i = 0;

微信掃碼免費搜題