多项选择题
Which of the following statements are legal?()
A. long l = 4990;
B. int i = 4L;
C. float f = 1.1;
D. double d = 34.4;
E. double t = 0.9F;
点击查看答案&解析
相关考题
-
多项选择题
String s= "hello"; String t = "hello"; char c[] = {’h’,’e’,’l’,’l’,’o’} ; Which return true?()
A. s.equals(t);
B. t.equals(c);
C. s==t;
D. t.equals(new String("hello"));
E. t==c; -
单项选择题
Whichexpressionsarecorrecttodeclareanarrayof10Stringobjects?()
A. char str[];
B. char str[][];
C. String str[];
D. String str[10]; -
单项选择题
ApublicmembervairablecalledMAX_LENGTHwhichisinttype,thevalueofthevariableremainsconstantvalue100.Useashortstatementtodefinethevariable.()
A. public int MAX_LENGTH=100;
B. final int MAX_LENGTH=100;
C. final public int MAX_LENGTH=100;
D. public final int MAX_LENGTH=100;
