Why Java is not purely object oriented?
Answer Posted / edward sudhaharchennai
Even though we cannot write parogramme in java without
classes and objects , Still java allows to use primitive
types. So i can say java is not 100% object oriented....
Is This Answer Correct ? | 4 Yes | 3 No |
Post New Answer View All Answers
What does the ‘static’ keyword mean? Is it possible to override private or static method in java?
What is difference between string and stringbuffer?
What are the basic control structures?
Is 0 an even number?
Which command from the jdk compiles a java program?
Is there any limitation of using inheritance?
Which containers use a flowlayout as their default layout in java programming?
Is this valid in java ? Can we instantiate interface in java?
What are the 7 types of characters?
What is the final class?
How arrays are stored in memory in java?
How are java objects passed to a method and what are native methods?
Is there a jre for java 11?
What is cr keyboard?
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)