找考题网-背景图
单项选择题

Given:

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;

热门试题