给定如下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) { Sample s = new Sample(5.2); System.out.println(s.getX()); } }