Win a copy of Design for the Mind this week in the Design 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: 48652
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
Pie
Posts: 12098
30
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