Monday 5 December 2016

Why java is not pure object oriented programming language

Java is support preemptive types that's why it is not pure object oriented programming language. Preemptive types means int, float, char, boolean, long.

Java is not Fully Object Oriented langauge because of it has Primitive Datatypes like float, int, char etc.

Reasons:
  1. It does not support Multiple inheritance. 
  2. It allows use of primitive data types which are not an objects.
  3. It allows static methods to call without creating the instance. 

No comments:

Post a Comment