This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Can we say, After Java5(Tiger), java is Pure OOL ?.

 
Praveen Kumar
Ranch Hand
Posts: 133
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Before Tiger, Because of existence of primitives we say java is not pure OOL. With the help of new feature added in Tiger, Autoboxing and Unboxing, We can direclty
perform operations on primitives objects say Integer(2). ?.

like this ... Integer(7) + Integer(7) =14.


Pl. correct me if i am wrong ?.

 
Mohamed Sanaulla
Saloon Keeper
Posts: 3159
33
Google App Engine Java Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We still have primitives (or we still use them widely). Also these operators- +,-,* and all are Operators and not method calls. What I would think should an actual OOP do-



So everything we use should be Objects and the operations performed on them should be method calls in the Objects. So we cannot say Java is Pure OOL.
 
Campbell Ritchie
Sheriff
Posts: 48415
56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please search this forum, because similar questions are asked frequently.
 
fred rosenberger
lowercase baba
Bartender
Posts: 12086
29
Chrome Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
and the standard answer is that since no two people have EVER agreed on what "Pure OO" means, the question is meaningless.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic