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
Who is the owner of java?
How do you find the maximum number from an array without comparing and sorting?
Does java initialize arrays to zero?
What is the purpose of static methods and variables?
Make a data structure and implement an algorithm to print all the files in a directory. (The root directory can have sub-directories too.)
How many bits is a char?
What is number data type in java?
What is http client in java?
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)
Explain different ways of creating a thread?
What is the use of coding?
what do you understand by synchronization? : Java thread
What is busy spin, and why should you use it?
What is the difference between yielding and sleeping in java programming?
What is core java called?