What is cloneable interface?

Answer Posted / niranjanravi

Cloneable interface is a marker interface which doesn't
have any methods in it.

Is This Answer Correct ?    19 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Who is the owner of java?

535


How do you find the maximum number from an array without comparing and sorting?

633


Does java initialize arrays to zero?

500


What is the purpose of static methods and variables?

528


Make a data structure and implement an algorithm to print all the files in a directory. (The root directory can have sub-directories too.)

845






How many bits is a char?

533


What is number data type in java?

548


What is http client in java?

515


Say you want to store the information about a number of pets in an array. Typical information that you could store for each pet (where relevant) would be • Breed of animal • Animal's name • Its birth date • Its sex • Whether it has been sterilised or not • When it is due for its next inoculation • When it last had its wings clipped For each type of pet (eg. dog, cat or bird) you would typically define a class to hold the relevant data. Note: You do not need to implement these classes. Just answer the following questions. 3.1.1 What would be the advantage of creating a superclass (eg. Pet) and declaring an array of Pet objects over simply using an array of Objects, storing each of the instances of the different pet classes (eg. Dog, Cat or Bird) in it? 3.1.2 Would you define Pet as a class or as an interface? Why? (2) (2)

1343


Explain different ways of creating a thread?

527


What is the use of coding?

518


what do you understand by synchronization? : Java thread

545


What is busy spin, and why should you use it?

586


What is the difference between yielding and sleeping in java programming?

583


What is core java called?

522