This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Hi, All i have a small doubt

 
kumarbobby
Greenhorn
Posts: 11
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why java is 100% pure object oriented language please kindly help me
 
Chetan Parekh
Ranch Hand
Posts: 3640
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Why java is 100% pure object oriented language please kindly help me


Who told you that Java is 100% OO lang?
 
Arun Kumarr
Ranch Hand
Posts: 661
Eclipse IDE Java Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Think of OO in java think of primitives in java.
int, long,double etc.,
 
sammaiah kyatham
Ranch Hand
Posts: 104
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey, what is this, even I heard java is 100% OO language.
If language contains primitive data types, is it not a 100% OO lanuage.

Comments plz....

-sam
 
S.Arun kumar
Greenhorn
Posts: 1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
java is not 100% Object Oriented language.
Smalltalk is an 100% OOL, where even primitive types are objects.
 
Hentay Duke
Ranch Hand
Posts: 198
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Java is not pure OO. Try creating an int object and see for yourself.
 
Stan James
(instanceof Sidekick)
Ranch Hand
Posts: 8791
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is a fairly common question ... search the forae for looonng loonngg answers. My short thoughts are

* "100% OO" has no universally accepted definition. I find it easy to say "OO language == Smalltalk" and go on with life, but I don't expect everyone to agree.

* What difference does the answer make? Will I choose a language for a project because it is 87.56% OO and another is 79.31%? Will I choose to bet my career on learning only the most OO language I can find? (Hint: NO)

* The OO qualities of a piece of software depend much more on the design and coding than the language. One could write relatively good OO in PowerBuilder or relatively bad OO in Java.

* Specific to Java ... primitives tick me off. Some days I really want to make collections of ints. Sheesh.

Even though I'm asserting there really isn't a single answer to your question, I don't want to shut your exploration of the idea. Search for definitions of OO and language comparisons. You can always learn something interesting from another language. Have fun coding and if somebody tells you his language is more OO than yours give him an "Am I caring?" look and get back to having fun.
[ July 13, 2005: Message edited by: Stan James ]
 
Joel McNary
Bartender
Posts: 1824
Eclipse IDE Java Ruby
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"kumarbobby",

There aren't may rules that you need to worry about here on the Ranch, but one that we take very seriously regards the use of proper names. Please take a look at the JavaRanch Naming Policy and adjust your display name to match it.

Unfortuntaely, you seem to have changed your display name from a valid one ("vinay krothapalli kumar") to an invalid one. In particular, your display name must be a first and a last name separated by a space character, and must not be obviously fictitious.

Thanks!
 
Hentay Duke
Ranch Hand
Posts: 198
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
* What difference does the answer make? Will I choose a language for a project because it is 87.56% OO and another is 79.31%? Will I choose to bet my career on learning only the most OO language I can find? (Hint: NO)


Usually when this question comes up I assume it's a homework assignment. The prof asks "is java a pure OOL and if not explain why".
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic