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
What is stored procedure. How do you create stored procedure ?
What do you understand by copy constructor in java?
What is parse method?
How to use string tokenizer class.
What is java virtual machine and how it is considered in context of java’s platform independent feature?
Is logger a singleton?
What is class??
What is the use of 'super' keyword inside a constructor?
Write a factorial program using recursion in java?
How can you share data between two thread in Java?
Explain differences between checked and unchecked exceptions in java?
What is ternary operator? Give an example.
What is flag in java?
What is the basic difference between string and stringbuffer object?
What is passing parameters in java?