Get 50% Discount on Our Udemy Course to Memorize the Periodic Table in 30 minutes Click Here. COUPON CODE: ALCHEMY

How to remember difference between StringBuilder and StringBuffer?

0 votes
asked Dec 15, 2015 by nanospeck (6,620 points)

How can I remember about thread safety in StringBuilder and StringBuffer without getting confused with each other.




1 Answer

0 votes
answered Dec 15, 2015 by nanospeck (6,620 points)
Here is an easy trick to remember it.

Only StringBuilder has the letter 'i' in it . If you put the letter 'i' upside down, it becomes '!' - equivalent to 'not' symbol in programming languages.

Hence 'StringBuilder' can be related with the word 'not' which can help you remember -> non-synchronized.


Part-time Student Content Contributor / Blogger

Eligibility: 8th-12th Standard Students Only, India

Job Description is a unique educational startup for creating engaging learning content. We are looking for creative students who can post new learning tricks to the website on part-time basis.

Salary: 3000 INR per month

Location: Remote / Work from home


  • Create mnemonic or story bases answers to the questions posted in the website regularly
  • The answers should be creative, engaging and easy to recollect
  • Add new questions and interesting answers to the website regularly
  • Improve the overall user engagement and content quality of the website

Skills Required

  • Should have good imagination and creativity
  • Should have writing skill in English
  • Should dedicate minimum 4 hours / week
  • Having artistic skills like singing, cartoon drawing, acting etc are added bonus but not mandatory

How to Apply

Create a simple trick to learn any topic from any subject you like.

Checkout some examples at:

Email a short description about your self, details of your trick and contact number to:

The trick must be short, interesting and engaging and helps the reader to learn the topic very easily.

Tricks are preferred in text format but other forms like cartoons, drawings, songs or even TikTok videos are very much welcome.

Shortlisted candidates will be contacted for a short round of telephonic interview.