• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Rob Spoor
  • Bear Bibeault
Saloon Keepers:
  • Jesse Silverman
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Al Hobbs
  • salvin francis

Hi, All i have a small doubt

 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Why java is 100% pure object oriented language please kindly help me
 
Ranch Hand
Posts: 3640
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Ranch Hand
Posts: 662
Eclipse IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Think of OO in java think of primitives in java.
int, long,double etc.,
 
Ranch Hand
Posts: 104
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
java is not 100% Object Oriented language.
Smalltalk is an 100% OOL, where even primitive types are objects.
 
Ranch Hand
Posts: 198
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Java is not pure OO. Try creating an int object and see for yourself.
 
(instanceof Sidekick)
Posts: 8791
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
Bartender
Posts: 1843
Eclipse IDE Ruby Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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".
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic