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.

If you like what I do, consider buying me a coffee :)

Buy me a coffeeBuy me a coffee