变量x、f、d分别为int,float,double类型的,除了f和d不能等于无穷大和NAN以外值可以任意选取,下面表达式为真的是()
A、x==(int)(double)x
B、x==(int)(float)x
C、d==(double)(float)d
D、(f+d)-f==d
A、x==(int)(double)x
B、x==(int)(float)x
C、d==(double)(float)d
D、(f+d)-f==d
A、 Void setVar(float f) {x = f;} B、 Public void setVar(int f) {x = f;} C、 Public void setVar(float f) {x = f;} D、 Public double setVar(float f) {x = f;} E、 Public final void setVar(float f) {x = f;} F、 Protected float setVar() {x=3.0f; return 3.0f; }
A、 Void setVar(float f) {x = f;} B、 Public void setVar(int f) {x = f;} C、 Public void setVar(float f) {x = f;} D、 Public double setVar(float f) {x = f;} E、 Public final void setVar(float f) {x = f;} F、 Protected float setVar() {x=3.0f; return 3.0f; }
A、int fun(int a, float b) { } float fun(int a, float b) { } B、float fun(int a, float b) { } float fun(int x, float y) { } C、float fun(float a) { } float fun(float a, float b) { } D、float fun1(int a, float b) { } float fun2(int a, float b) { }
A、A. Void setVar(float f) {x = f;} B、B. Public void setVar(int f) {x = f;} C、C. Public void setVar(float f) {x = f;} D、D. Public double setVar(float f) {x = f;} E、E. Public final void setVar(float f) {x = f;} F、F. Protected float setVar() {x=3.0f; return 3.0f; }