Monday, June 11, 2012

Is Java fully object oriented?

  Java is Not fully object oriented...There is lot many reasons to say...Java supports OOP concepts partially...But not fully...The main aim of java is to avoid any complexity for programmers...So they avoided almost all the complexity from the OOP...Like multiple inheritance, friend functions, operator overloading... Etc...The main reason for keeping primitive types as non-objects is speed. For all the placeswhere primitive types don’t make sense (such as containers etc.) you have the option to'wrap' then in their equivalent objects. JDK 1.5 even introduces the concept of autoboxingto make this transition even more programmers friendly

No comments:

Post a Comment