How to sort double array in java?
No Answer is Posted For this Question
Be the First to Post Answer
1) Find the Merge point of two linked lists. 2) Swap two bits of integer. 3) Reverse individual words of the sentence. 4) Reverse string without using temp string.
Explain how to convert any java object into byte array.
what is d difference between deep cloning and shallow cloning in core java?
What are parameters in a method?
What is anti pattern in cyber security?
What happens if we don’t override run method ?
What are user defined exceptions?
How to display all the prime numbers between 1 and n (n is the number, get the input from user)
What is the purpose of a default constructor?
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)
What is the use of inner class?
explain the concept of inheritance with an example?