A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Spring in Action
this week in the
Java in General
Can we say, After Java5(Tiger), java is Pure OOL ?.
Joined: Nov 06, 2006
Nov 17, 2010 23:47:06
Before Tiger, Because of existence of primitives we say
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 ?.
Joined: Sep 08, 2007
Nov 18, 2010 00:03:12
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-
new Integer(7).+(new Integer(14))//Similar to what Scala does
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 |
Joined: Oct 13, 2005
Nov 18, 2010 04:07:09
this forum, because similar questions are asked frequently.
Joined: Oct 02, 2003
Nov 18, 2010 06:58:52
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
subject: Can we say, After Java5(Tiger), java is Pure OOL ?.
Pass by Reference in Java
what is primitive data type ?
Why need Integer class ?
is java 100% object oriented
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014