Monday, May 6, 2019

Prototype Design Pattern In Java

Prototype Design Pattern

Q- How to create clone of object without using cloneable interface?
Q- Why clone method is not in cloneable interface?
Q- Why clone method is defined in object class?
Q- Why is the clone () method protected in Java Lang object?
Q- Why do we need to override clone method?
Q- How can we create object using clone method in Java?
Q- What does Super Clone do? Or What does super.clone() do?
Q- Does clone create new object in Java?
Q- Why do we need cloning in Java?
Q- Difference Between Shallow Copy Vs Deep Copy In Java
Q- Is Java clone a deep copy or shallow copy?
Q- Which of these method of object class can clone an object?

No comments:

Post a Comment