string character are array?
Answers
Answered by
2
Answer:
Both Character Arrays and Strings are a collection of characters but are different in terms of properties. String refers to a sequence of characters represented as a single data type. Character Array is a sequential collection of data type char. Strings are immutable.
Answered by
5
String class has three methods related to char. Let's look at them before we look at a java program to convert string to char array. char[] toCharArray() : This method converts string to character array. The char array size is same as the length of the string.
itzDopeGirl
Similar questions