【单选题】给定如下Java代码,编译运行,结果将是() public class Sample { private int x; public Sample() { x = 1; } public void Sample(double f) { this.x=(int)f; } public int getX() { return x; } public static void main(String[] ...
【单选题】给定如下Java代码,编译运行,结果将是 public class Sample { private int x; public Sample(){ x=1; } public void Sample(double f){ this.x = (int)f; } public int getX(){ return x; } public static void main(String[] args)...