What is cloneable interface?

Answer Posted / sunil kumar

Cloneable is a marker interface present in java.lang package. If we want to copy the object then we are using clone method by implementing our class from Cloneable interface.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain about the security aspect of java?

785


What is the reason behind using constructors and destructors?

811


Is there any way to find whether software installed in the system is registered by just providing the .exe file? I have tried the following code but its just displaying the directory structure in the registry. Here the code : package com.msi.intaller; import java.util.Iterator; import ca.beq.util.win32.registry.RegistryKey; import ca.beq.util.win32.registry.RootKey; public class RegistryFinder { public static void main(String... args) throws Exception { RegistryKey.initialize(RegistryFinder.class.getResource("jRe gistryKey.dll").getFile()); RegistryKey key = new RegistryKey(RootKey.HKLM, "Software\\ODBC"); for (Iterator subkeys = key.subkeys(); subkeys.hasNext();) { RegistryKey subkey = subkeys.next(); System.out.println(subkey.getName()); // You need to check here if there's anything which matches "Mozilla FireFox". } } }

1565


How many bytes are there?

762


Why can't you declare a class as protected?

820


How the interruptible method gets implemented?

764


Is call by reference possible in java?

744


What is difference between static and abstract class?

775


Name container classes in java programming?

821


What is the list interface?

859


What are peerless components?

853


What is finally and finalize in java?

814


What are the Class Libraries ?

817


How many unicode characters are there?

810


What’s a deadlock?

872