When creating a String object,if a character array and two integers are passed to the String constructor,then the created String contains:
A) the characters of the array from the index specified by the first integer for the number of characters represented by the second integer.
B) the characters of the array from the index specified by the first integer to the index specified by the second integer.
C) all of the characters except those between the indices represented by the two integer values.
D) None of the above.
Correct Answer:
Verified
Q10: Class String and the Char structure are
Q11: A String cannot be made directly from
Q12: When using the String constructor with arguments
Q13: A string literal:
A)contains only one character.
B)contains numbers
Q14: The expression New String("America",4,2)creates a string with
Q16: The bounds on a String are always:
A)0
Q17: A sequence of characters in double quotation
Q18: Characters consist of only the uppercase and
Q19: Characters can be:
A)uppercase letters
B)lowercase letters
C)digits
D)All of the
Q20: A character constant is an integer value
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents