What is cloneable interface?

Answer Posted / prashant singh

cloneable interface is a marker interface,found in java.lang package.if we want to clone the object then we have to implement this interface.
if we do not implement it and try to make clone of object then CloneNotSupportedException is thrown.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between sleep and wait in java?

517


Which access specifier can be used with class ?

539


How are multiple inheritances done in Java?

622


Is there a way to increase the size of an array after its declaration?

606


What is the difference between the size and capacity of a vector?

571






How will you compute size of a structure?

592


Lowest Common ancestor in a Binary Search Tree and Binary Tree.

562


How can constructor chaining be done by using the super keyword?

622


Tell us something about an iterator.

550


What do you mean by compiler?

587


What is object in java?

540


How do you compare two strings lexicographically?

545


Explain the difference between comparator and comparable in java?

489


What is difference between next () and nextline () in java?

542


What is mutable object and immutable object?

632