quiz

Full-stack dev quiz question #53

Full-stack dev quiz question #53quiz

Not all objects can be easily shared between threads in Java. Do you know which ones are thread-safe? Check fifty third question of full-stack dev quiz to verify that.

Objects of which classes are thread-safe?

Choose all valid options.

  1. Integer
  2. AtomicInteger
  3. Long
  4. StringBuffer
  5. StringBuilder

For the correct answer scroll down

.

.

 

 

 

 

 

 

 

 

 

 

Do not miss valuable content. You will receive a monthly summary email. You can unsubscribe anytime.

 

 

 

 

 

 

 

 

 

 

 

 

 

.

.

.

The correct answer is: b, d. If you would like to read more, check Thread-safe alternative to i++ article.

We use cookies

We use cookies on our website. Some of them are essential for the operation of the site, while others help us to improve this site and the user experience (tracking cookies). You can decide for yourself whether you want to allow cookies or not. Please note that if you reject them, you may not be able to use all the functionalities of the site.