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.
|Java - Interview Questions and Answers|
|Ans. String has an argument constructor that take char array as argument and creates a string.|
There is no constructor available with String that takes in a character and creates a String. We can use StringBuilder which has a char argument constructor.
|Help us improve. Please let us know the company, where you were asked this question :|
|Like Discuss Correct / Improve  character  char  char array  String  char to String  char array to String|
|Why Char array is preferred over String for storing password?|
|How can we convert String into Char array and vice versa ?|