多项选择题
Which are syntactically valid statement at// point x?()
class Person {
private int a;
public int change(int m){
return m;
}
}
public class Teacher extends Person {
public int b;
public static void main(String arg[]){
Person p = new Person();
Teacher t = new Teacher();
int i;
// point x
}
}
A. i = m;
B. i = b;
C. i = p.a;
D. i = p.change(30);
E. i = t.b.
相关考题
-
多项选择题
Whichofthefollowingfragmentsmightcauseerrors?()
A. String s = "Gone with the wind";String t = " good ";String k = s + t;
B. String s = "Gone with the wind";String t;t = s[3] + "one";
C. String s = "Gone with the wind";String standard = s.toUpperCase();
D. String s = "home directory";String t = s - "directory"; -
单项选择题
Whichstatementofassigningalongtypevariabletoahexadecimalvalueiscorrect?()
A. long number = 345L;
B. long number = 0345;
C. long number = 0345L;
D. long number = 0x345L; -
多项选择题
Whichdeclarationsofidentifiersarelegal?()
A. $persons
B. TwoUsers
C. *point
D. this
E. _endline
