100 Days of Java challenges
Day 12 - StringBuffer and StringBuilder
Write a program that performs the following tasks:
Reading List:
1. Learn the difference between String, StringBuffer and StringBuilder.
2. Learn when StringBuffer and StringBuilder should be preferred over String.
- Initialise a StringBuffer with value "Hello" and append a space and "World" and print it
- Initialise a StringBuilder with value "Hello" and append a space and "World" and print it
Reading List:
1. Learn the difference between String, StringBuffer and StringBuilder.
2. Learn when StringBuffer and StringBuilder should be preferred over String.
Community|Blog|Youtube Hunt|Logic Puzzles|Careers|Contact Us
Have Feedback or want to contribute? Email: hello[@]100DaysOfCode.io
100DaysOfCode@2024