【单选题】指出下列程序运行的结果 ( ) public class Example { String str=new String("good"); char[]ch= {'a','b','c'}; public static void main(String args[]) { Example ex=new Example(); ex.ch[0]='g'; System.out.print(ex.st...
【单选题】指出下列程序的运行结果 public class Test { public static void main(String[] args) { int i = 9; switch(i) { default: System.out.println("default"); case 0: System.out.println("zero"); break; case 1: System.out.pr...
【单选题】指出下列程序运行的结果_________。 public class Example{ String str=new String("good"); char[]ch={'a','b','c'}; public static void main(String args[]){ Example ex=new Example(); ex.change(ex.str...