*
The moose likes Beginning Java and the fly likes Hi, All i have a small doubt Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Hi, All i have a small doubt " Watch "Hi, All i have a small doubt " New topic
Author

Hi, All i have a small doubt

kumarbobby
Greenhorn

Joined: Jul 07, 2005
Posts: 11
Why java is 100% pure object oriented language please kindly help me
Chetan Parekh
Ranch Hand

Joined: Sep 16, 2004
Posts: 3636

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


Who told you that Java is 100% OO lang?


My blood is tested +ve for Java.
Arun Kumarr
Ranch Hand

Joined: May 16, 2005
Posts: 513

Think of OO in java think of primitives in java.
int, long,double etc.,


If you are not laughing at yourself, then you just didn't get the joke.
sammaiah kyatham
Ranch Hand

Joined: Aug 03, 2003
Posts: 104
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

Joined: Jul 13, 2005
Posts: 1
java is not 100% Object Oriented language.
Smalltalk is an 100% OOL, where even primitive types are objects.
Hentay Duke
Ranch Hand

Joined: Oct 27, 2004
Posts: 198
Java is not pure OO. Try creating an int object and see for yourself.
Stan James
(instanceof Sidekick)
Ranch Hand

Joined: Jan 29, 2003
Posts: 8791
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 ]

A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi
Joel McNary
Bartender

Joined: Aug 20, 2001
Posts: 1817

"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!


Piscis Babelis est parvus, flavus, et hiridicus, et est probabiliter insolitissima raritas in toto mundo.
Hentay Duke
Ranch Hand

Joined: Oct 27, 2004
Posts: 198
* 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".
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Hi, All i have a small doubt