日韩欧美亚洲 _ 欧美亚洲一区 _ 日本亚洲欧美 _ 亚洲精品欧美 国产白袜脚足J棉袜在线观看_亚洲熟妇av一区二区三区_久久天天躁狠狠躁夜_精品众筹模特私拍在线

單項選擇題

class Foo { 
private int x; 
publicFoo(intx) {this.x=x; } 
public void setX( int x) { this.x = x; } 
public int getX() { return x; } 
}  
public class Gamma { 
static Foo fooBar( Foo foo) { 
foo = new Foo( 100); 
return foo; 
} 
public static void main( String[] args) { 
Foo foo = new Foo( 300); 
System.out.print( foo.getX() + “-“); 
Foo fooFoo = fooBar( foo); 
System.out.print( foo.getX() + “-“); 
System.out.print( fooFoo.getX() + “-“); 
foo = fooBar( fooFoo); 
System.out.print( foo.getX() + “-“); 
System.out.prmt( fooFoo.getX()); 
} 
} 
What is the output of this program?()

A. 300-100-100-100-100
B. 300-300-100-100-100
C. 300-300-300-100-100
D. 300-300-300-300-100

題目列表

你可能感興趣的試題

微信掃碼免費搜題