Choose the constructor type used to build strings from character array:
A. public String(char[ ] value)
B. public String(char[ ] value, int startIndex, int length)
C. public String(char[ ])
D. All of the mentioned
Answer:A
Choose the constructor type used to build strings from character array:
A. public String(char[ ] value) B. public String(char[ ] value, int startIndex, int length) C. public String(char[ ]) D. All of the mentioned
Explanation: public String(char[ ] value) – This form of constructor constructs a string that contains characters in value