Is java pure object oriented or not? if yes, give the valid
reason.
Answer Posted / supriya
No,
1.Primitive data types are present
2.Multiple inheritance is not support which is OOPs concept.
Is This Answer Correct ? | 3 Yes | 3 No |
Post New Answer View All Answers
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)
Is java 11 paid version?
What is garbage collection? What is the process that is responsible for doing that in java?
Why is core java important?
How can we achieve thread safety in java?
Can we create an object of static class in java?
How do you convert bytes to character in java?
4.1 Supply contracts (in the form of comments specifying pre- and post conditions) for the enqueue() method of the LinkedQueue class given in the Appendix. (2) 4.2 Let Thing be a class which is capable of cloning objects, and consider the code fragment: Thing thing1 = new Thing(); //(1) Thing thing2 = thing1; //(2) Thing thing3 = (Thing) thing1.clone(); //(3) Explain how the objects thing2 and thing3 differ from each other after execution of the statements. (
Define a java class.
What is static variable with example?
What does a method signature consist of?
Explain notify() method of object class ?
What is the purpose of main function in java?
What is use of functional interface in java 8? Explain
Why vector is used in java?