Showing posts with label Clone(). Show all posts
Showing posts with label Clone(). Show all posts

Using Mutable Objects inside user defined Immutable Class

We may aware of creating user defined Immutable Class in Java. Basic steps to follow to create immutable class are Maintain all member variables and class has defined with final keyword so that variables...

Deep Copy in Java

In our earlier tutorial we have seen about Shallow copy and how we can implement and how its works in Java. Same way we will see about Deep copy in this tutorial. Deep copy...

Shallow copy in Java

In one of our earlier tutorial we have seen about Java clone. In this tutorial we will see about Shallow Copy with simple example code. Also we will about What is Shallow Copy and...

Java Clone()

In this tutorial we will see about Java Clone and how to implement in our coding. Before jumping into coding lets discuss What is Java Clone and how its working. What is Java Clone?...