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


Please Help Members By Posting Answers For Below Questions

What does the ‘static’ keyword mean? Is it possible to override private or static method in java?

568


What is difference between string and stringbuffer?

499


What are the basic control structures?

501


Is 0 an even number?

557


Which command from the jdk compiles a java program?

492






Is there any limitation of using inheritance?

573


Which containers use a flowlayout as their default layout in java programming?

517


Is this valid in java ? Can we instantiate interface in java?

550


What are the 7 types of characters?

568


What is the final class?

552


How arrays are stored in memory in java?

513


How are java objects passed to a method and what are native methods?

602


Is there a jre for java 11?

560


What is cr keyboard?

659


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)

1352