Immutable Class - interview insights| java interview questions and answers for experienced/Freshers

Описание к видео Immutable Class - interview insights| java interview questions and answers for experienced/Freshers

Let’s learn different techniques to protect our custom immutable class in java which is one of the hot core java interview questions. In this video, we will start from absolute scratch, i.e by creating a mutable class and understanding different loopholes of a mutable class.



Then we will convert our mutable class to immutable and will understand how to create immutable classes in java. While creating custom immutable classes, we have
take care of various scenarios, which are some top core java interview questions.


Some top 10 java interview questions for this topic could be :


What is a mutable class?
How to create a custom immutable class?
Why the immutable classes are final?
Why Immutable classes don’t have any setter?
How to protect your immutable classes if your class got some mutable objects reference?
Why the hashmap keys are immutable?
few of the questions from the above and some more questions we will discuss in the next video.


Make sure these questions come under java interview questions and answers for experienced and java interview questions and answers for freshers category. So whether you got some experience or you are fresher; you can expect this java immutable vs mutable topic ( as java interview programs) in your java job interview.


Time stamp:

introduction : 00:00
Immutable object definition : 01:25
What is a mutable object? : 02:53
Mutable Vs Immutable : 06:16
Custom Immutable class : 06:58
Mutable reference inside Immutable class : 15:03
breaking java immutable classes: 21:27
Protecting your immutable class (code fix) : 24:50
hashcode() comparison: 35:15
Important scenario based interview question : 39:10
Using copy constructor : 45:00
Using getInstance() method: 49:09
Pros of Immutable class : 52:13
Uses of immutable classes : 56:24


for more java interview questions / java interview questions and answers for experienced /java interview questions and answers for freshers, consider subscribing to my channel.


   / @seleniumexpress  




#CoreJavaInterviewQuestion #FAQForfreshers #FAQForExperienced




More core java interview questions :
Why String is immutable?
   • Why string is immutable in java || Th...  


String Hashcode caching internal. Hashcode caching for immutable classes (important)
   • This is why string is immutable in Ja...  


Why hashmap works internally?
   • How HashMap works internally || Popul...  


java interview questions and answers for experienced / Freshers [playlist]
   • TOP 6 difference between Abstract cla...  




For more courses visit
https://www.seleniumexpress.com


Any time you are getting stuck with issues, Feel free to ask for support.
You can send mail to [email protected]


you can ping me on my Facebook page
  / seleniumexpress  


Make sure to join my private Facebook page (Ask me here)
“SeleniumExpress - Support”
  / 187000222361579  


you can ask for support in my website forum
https://www.seleniumexpress.com


Follow me on Insta
  / selenium_express  


Music :
—————
credits : -
(channel intro)
Adventures by A Himitsu   / a-himitsu  
Creative Commons — Attribution 3.0 Unported— CC BY 3.0
http://creativecommons.org/licenses/b...
Music released by Argofox    • A Himitsu - Adventures [Royalty Free ...  
Music provided by Audio Library    • Adventures – A Himitsu (No Copyright ...  

Комментарии

Информация по комментариям в разработке