Core Java - Interview Questions and Answers for 'Immutability' | Search Interview Question - javasearch.buggybread.com
Javasearch.buggybread.com

Search Interview Questions


 More than 3000 questions in repository.
 There are more than 900 unanswered questions.
Click here and help us by providing the answer.
 Have a video suggestion.
Click Correct / Improve and please let us know.
Label / Company      Label / Company / Text

   



Interview Questions and Answers - Order By Rating

   
 Q31. What are advantages of stateless and / or immutable objects ?Object Oriented Programming
Ans. They can be shared across multiple threads as they are thread safe.

 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve     java   stateless objects   immutable  immutability objects   objects


Related Questions

  What are stateless objects ? How are they different from immutable objects ? Which of these two is thread safe ?
 What are the benefits of creating immutable objects ?
 What are the examples of immutable objects in Java ?
 What are the drawbacks of creating immutable objects ? Why don't we create all object immutable if mutability possesses so much threat ?
 Does immutability facilitates better performance ?
 What is immutability and What are it's disadvantages ?


 Q32. Which of the following class creates mutable objects ?

a. Boolean
b. File
c. String
d. StringBuffer
Ans. StringBuffer

 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve     java   immutable  immutability


Related Questions

  Why is String immutable in Java ?
  Why Char array is preferred over String for storing password?
 How does making string as immutable helps with securing information ? How does String Pool pose a security threat ?
 How is string object immutable if we can concat a string to it ?
  How to implement an immutable class ?
  What is an immutable class ?
  What is an Immutable Object ?
  Does Declaring an object "final" makes it immutable ?
 Is String final in Java ?
  What are stateless objects ? How are they different from immutable objects ? Which of these two is thread safe ?


previous 30   

Help us and Others Improve. Please let us know the questions asked in any of your previous interview.

Any input from you will be highly appreciated and It will unlock the application for 10 more requests.

Company Name:
Questions Asked: