Multiple choice technology programming languages

How many methods can clone able interface can have?

  1. One

  2. Two

  3. Three

  4. None of the above

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

The Cloneable interface is a marker interface that contains NO methods. It indicates that a class permits cloning - the actual clone() method is inherited from Object class. Marker interfaces exist for type-safety and compiler checks only.