单项选择题
设x、y为已定义的类名,下列声明x类的对象x1的语句中正确的是()
A.staticxx1
B.publicxx1=newx(int123)
C.yx1
D.xx1=x()
点击查看答案
相关考题
-
单项选择题
设有定义floatx=3.5f,y=4.6f,z=5.7f;则以下的表达式中,值为true的是()
A.x>y||x>z
B.x!=y
C.z>(y+x
D.x<y&!(x<z) -
单项选择题
设x=1,y=2,z=3,则表达式y+=z--/++x的值是()
A.3
B.3.5
C.4
D.5 -
单项选择题
Strings="This is the";Stringt=s.concat("String.");t的内容是()
A.This is the String
B.This is the
C.String
