0

Can any one explain need of strings as already we have characters which can be used as string?

misc

18th Oct 2017, 11:36 AM
Akhil Gorantla
Akhil Gorantla - avatar
2 Answers
0
yes characters can be used as a string... BUT it will be one variable per character which can be annoying. So String, which inherits from the charSequence class, is just a sequence of char which the String class does have some very useful methods. If this does not answer your question, please explain more of what you mean hope this helps happy coding
18th Oct 2017, 12:07 PM
SomeoneAwesome78
SomeoneAwesome78 - avatar
0
thanks kyle
18th Oct 2017, 12:08 PM
Akhil Gorantla
Akhil Gorantla - avatar