多项选择题
Which statements about inheritance are true?()
A. In Java programming language only allows single inheritance.
B. In Java programming language allows a class to implement only one interface.
C. In Java programming language a class cannot extend a class and implement a interface together.
D. In Java programming language single inheritance makes code more reliable.
相关考题
-
多项选择题
Whicharesyntacticallyvalidstatementat//pointx?() classPerson{ privateinta; publicintchange(intm){ returnm; } } publicclassTeacherextendsPerson{ publicintb; publicstaticvoidmain(Stringarg[]){ Personp=newPerson(); Teachert=newTeacher(); inti; //pointx } }
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;
