How to create user defined or custom immutable class?|Core Java Interview Question

preview_player
Показать описание
This video will explain How to create user defined immutable class
or How to custom immutable class. How to make java class immutable or How to create user defined or custom immutable class

Java interview questions
Java programming tutorial
Java programming for beginners
Java tutorial for beginners
Java tutorial

How hashmap works internally in java

Video for difference between Method overloading and Method Overriding
Or
Video for difference between Compile time polymorphism and runtime polymorphism
Video for Inheritance Vs Association & Aggregation Vs Composition

Video for difference between JDK, JVM and JRE

Video for Object Oriented Programming Part 1

Video for Object Oriented Programming Part 1

Why String in Immutable?

Video for Coupling and Cohesion

Video for Differenace between String, StringBuffer and StringBuilder in java

Using Generics In Collection

Introduction to collection framework

Difference Between ArrayList And LinkedList

How HashMap works internally

Difference Between HashSet, LinkedHashSet and TreeSet
Рекомендации по теме
Комментарии
Автор

Great! Very helpful. "We should return copy of mutable instance variable rather than returning original object" --> Important point learnt from your video! Thank you :)

AadityaKavthekar
Автор

Good Explanation of custom Immutable class. 👍👍

YogeshMeena-slwg
Автор

Good explanation about user defined immutable Java class

RakeshYadav-ewhp
Автор

I m a java developer. Thanks. Please Post more videos

subramanianchenniappan
Автор

But my doubt is why instance variable is private if it is already final then outside the class no one can reassign .

dhirajchandra
Автор

Why you return new StringBuffer (sb1.tostring()) as already stringbuffer have no argument constructor what if it will date object instead of stringbuffer

babul