Question DSA-STR-0053
MediumWhich class should be used to build a long string in a loop in Java?
- A.
Character
- B.
StringBuilder
- C.
String
- D.
StringTokenizer
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
String
StringTokenizer
Sign up free to see the answer and a step-by-step explanation.