Can a String hold Array Object? May be this question could be silly? Just wanted to know…
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
A string can just “hold” characters – that’s what a String is.
Of course, those characters could denote a stringified representation of an array of objects, such as the string
[1, "two", MyCoolClass(5, 8.0)]. But that would just be some quasi-arbitrary encoding, and you’d have to do some work to convert it back again (see JSON for a real-world example).So the short answer is “no”, but the real answer would be to ask for clarification of what it is you mean…