Search Interview Questions
| More than 3000 questions in repository.|
There are more than 900 unanswered questions.
Click here and help us by providing the answer.
Have a video suggestion.
Click Correct / Improve and please let us know.
|Interview Questions and Answers|
|Ans. There is a method toCharArray() within String class that can be used to convert string to char array.|
String class has an argument constructor that takes a char array and create a string
|Help us improve. Please let us know the company, where you were asked this question :|
|Like Discuss Correct / Improve  string  char array|
|Why Char array is preferred over String for storing password?|
|How can we convert a character or a character array into a String ?|