Choose the constructor type used to build strings from character array.

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.”

  1. 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.

Leave a Comment