Welcome

Saturday 14 September 2013

Is java a pure object oriented programming language?

Short answer for is java a pure object oriented programming language? is yes.

Before java version 5 was released, java was not considered as a pure or full object oriented programming language because of the 8 primitive data types (int, char, float etc...). The problem with these primitive data types is, the values of these types are not objects. They are simply plain values. This is the reason why java was not considered a pure object oriented programming language.

But, in version 5, Java introduced the concept of auto boxing which means whenever a programmer uses a value of the primitive data type, it will be automatically converted to an object of its identical wrapper class behind the scenes. Due to this reason, from java version 5, it is called as a pure object oriented programming language.

No comments:

Post a Comment