多项选择题
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;
Whichexpressionsarecorrecttodeclareanarrayof10Stringobj...
单项选择题Which expressions are correct to declare an array of 10 String objects? ()
A. char str[]; B. char str[][]; C. String str[]; D. String str[10];
ApublicmembervairablecalledMAX_LENGTHwhichisinttype,the...
单项选择题A public member vairable called MAX_LENGTH which is int type, the value of the variable remains constant value 100. Use a short statement to define the variable.()
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;
Amembervariabledefinedinaclasscanbeaccessedonlybythecla...
单项选择题A member variable defined in a class can be accessed only by the classes in the same package. Which modifier should be used to obtain the access control?()
A. private B. no modifier C. public D. protected