This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Java in General and the fly likes Can we say, After Java5(Tiger), java is Pure OOL ?. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Java » Java in General
Bookmark "Can we say, After Java5(Tiger), java is Pure OOL ?. " Watch "Can we say, After Java5(Tiger), java is Pure OOL ?. " New topic

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

Praveen Kumar
Ranch Hand

Joined: Nov 06, 2006
Posts: 133

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

Joined: Sep 08, 2007
Posts: 3151

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.

Mohamed Sanaulla | My Blog
Campbell Ritchie

Joined: Oct 13, 2005
Posts: 43892
Please search this forum, because similar questions are asked frequently.
fred rosenberger
lowercase baba

Joined: Oct 02, 2003
Posts: 11853

and the standard answer is that since no two people have EVER agreed on what "Pure OO" means, the question is meaningless.

There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors
It is sorta covered in the JavaRanch Style Guide.
subject: Can we say, After Java5(Tiger), java is Pure OOL ?.
jQuery in Action, 3rd edition