How we can make copy of a java object?
Answer / Abhishek Tiwari
We can make a copy of a Java object by using the Cloneable interface and implementing its clone() method, or by using Java serialization with ObjectOutputStream and ObjectInputStream classes.
| Is This Answer Correct ? | 0 Yes | 0 No |
Is null false in java?
Difference between string, stringbuffer and stringbuilder?
what is collections in java?
Explain java coding standards for interfaces?
What are the kinds of polymorphism?
This is related to threads. I have a class with synchronized method m1(). Can I create different instances of this class and execute the m1() for different threads?
What are inbuilt functions?
What is the difference between heap and stack memory?
Define how can we find the actual size of an object on the heap?
How many classes can any class inherit java?
What is meant by serialisation and deserialisation?
Implement two stacks using a single array.