题目内容
下面程序的结果是什么?class Tester {int var;Tester(double var) {this.var = (int)var;}Tester(int var) {this("hello");}Tester(String s) {this();System.out.println(s);}Tester(){System.out.println("good-bye");}public static void main(String[] args) {Tester t = new Tester(5);}}
查看答案
搜索结果不匹配?点我反馈