Answer Posted / krishnachaitanya
Cloning is done in two types:
1.Shallow Cloning
2.Deep Cloning
depends on how you override clone()in you class
| Is This Answer Correct ? | 20 Yes | 4 No |
Post New Answer View All Answers
What is the parse method in java?
Explain the purpose of garbage collection in Java?
Can list have duplicates in java?
How do you sort an array in java?
Can we create our own daemon thread?
What is main difference between variable and constant?
What is difference between equals and hashcode method?
Can static methods be inherited?
Does java trim remove newline?
how many types of Inheritance?
What is class??
Which arithmetic operations can result in the throwing of an arithmeticexception?
Is logger a singleton?
What is the final keyword?
What do you understand by looping in java? Explain the different types of loops.