[单选择]What will be the output when you compile and execute the following program.

public class Base{

private void test() {

System.out.println(6 + 6 + “(Result)”);

}

static public void main(String[] a) {

new Base().test();

}

}

Select most appropriate answer.

  1. 66(Result)
  2. 12(Result)
  3. Runtime Error.Incompatible type for +. Can’t convert an int to a string.
  4. Compilation Error.Incompatible type for +. Can’t add a string to an int.
参观人数:633 ,参试人数:2,正确率:100%