If the padCharacter is omitted from the syntax of the padLeft or PadRight, the default is ______________

If the padCharacter is omitted from the syntax of the padLeft or PadRight, the default is ______________
A. Space
B. *
C. /
D. ?
 
Answer: A
Explanation: The optional padCharacter argument is the character that each method uses to pad the string until it reaches the desired number of characters. If the padCharacter argument is omitted, the default padding character is the space character.
 

Tìm kiếm

Back
Top