Question DSA-STR-0053
MediumWhich class should be used to build a long string in a loop in Java?
- A.
Character
- B.
StringBuilder
- C.
Sign up free to see the answer and a step-by-step explanation.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
Strings question
Which class should be used to build a long string in a loop in Java?
Character
StringBuilder
Sign up free to see the answer and a step-by-step explanation.
String
StringTokenizer