[单选择]What will be the output when you compile and execute the following program. The symbol ’ ?’ means space.

public class Base{

private void test() {



String aStr = “?One?”;

String bStr = aStr;

aStr.toUpperCase();

aStr.trim();

System.out.println(“[" + aStr + "," + bStr + "]“);

}



static public void main(String[] a) {

new Base().test();

}

}

Select most appropriate answer.

  1. [ONE,One]
  2. [?One?,?One?]
  3. [ONE,ONE]
  4. [?One?,One]
参观人数:685 ,参试人数:3,正确率:33%