Javatpoint Logo

why java is not pure object oriented language

By: chaitu*** On: Fri Aug 29 11:59:07 IST 2014     Question Reputation0 Answer Reputation0 Quiz Belt Series Points0  0Blank User
why java in not purely oop language because of primitives............explain?Up0Down

 
we can say..

Java is not a pure object oriented language because it supports Primitive datatype such as int, byte, long? etc, to be used, which are not objects.

yes,
Java provides wrapper class for int, long, etc? But still int, long, float,etc? are not classes. Integer, Float, Long only classes.

and

There are some qualities to be satisfied for a programming language to be pure Object Oriented. They are:

1. Encapsulation/Data Hiding

2. Inheritance

3. Polymorphism

4. Abstraction

5. All predifined types are objects

6. All operations are performed by sending messages to objects

7. All user defined types are objects.0
Image Created0Down

By: [email protected] On: Fri Aug 29 12:22:27 IST 2014 Question Reputation0 Answer Reputation392 Belt Series Points0 392User Image
Are You Satisfied :0Yes0No
 
you can say that java is not pure object oriented because it has primitive data type and static keyword.
you can access the static members and behavoiur without making the object of the class.
Image Created0Down

By: [email protected] On: Fri Aug 29 12:47:00 IST 2014 Question Reputation0 Answer Reputation0 Belt Series Points0 0User Image
Are You Satisfied :0Yes0No