a) public String(value)
b) public String(char[ ] value, int startIndex, int length)
c) public String(char[ ])
d) all of the mentioned
1 thought on “Choose the constructor type used to build strings from character array.”
Leave a Comment
You must be logged in to post a comment.
b
Explanation: public String(char[ ] value) – This form of constructor constructs a string that contains characters in value
public String(char[ ] value, int startIndex, int length) -The second form uses length characters from value, beginning at the index specified by startIndex.