Answer Posted / seventh k
hey,this is core java section,isn't it?
Object's clone() is a method in JavaProgrammingLanguage,for
object duplication,to copy the functionality of a
class.Class Object's clone() creates and returns a copy of
the object,with the same class and with all the fields
having the same values.Object.clone() throws a
CloneNotSupported exception,unless u implement marker
Interface Cloneable.
two types of clonning:
1. Shallow Clonning: this is the default implementation
of Object.clone(), the clone will be a protected one.
2. Deep Cloning:classes must override clone(),to get the
Deep clonning.
Is This Answer Correct ? | 4 Yes | 2 No |
Post New Answer View All Answers
How many bytes is a string java?
describe method overloading
What is the relationship between clipping and repainting under awt?
Is Java a dying language?
How do you download stubs from Remote place?
Is vector ordered in java?
Can we assign integer value to char in java?
What is a treeset class?
What happens if we don’t define serial version uid?
What is the difference between integer parseint and integer valueof?
What is use of arraylist in java?
How many ways can we create singleton class?
What is the java idl system?
What are the default and parameterized constructors?
What is the use of 'super' keyword inside a constructor?