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:
  • Campbell Ritchie
  • Devaka Cooray
  • Tim Cooke
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
Saloon Keepers:
  • Piet Souris
Bartenders:

Java isnt Pure object oriented

 
Ranch Hand
Posts: 982
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
Hi,

I have heard that java isnt pure object oriented

Why is that so???

Tx
 
High Plains Drifter
Posts: 7289
Netbeans IDE VI Editor
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
Because it supports types that are not pure objects, such as the eight primitive types (boolean, byte, char, short, int, long, float, double).
 
A Kumar
Ranch Hand
Posts: 982
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
Thank you..

Is that the only reason..??


Regards
 
Bartender
Posts: 10336
Hibernate Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
Why does it worry you?
 
Ranch Hand
Posts: 464
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
Java support fully object-oriented programming. This is the important point.

The reason people say Java is not fully object-oriented is because of the inclusion of primitive types and not because of the exclusion of Object variants of primitive types. Therefore Java is fully OO, plus it has support for primitive types.

I do not know why Sun included primitive types but even if it was only to ease the learning curve for C programmers then I think the decision was a good one and is not to the detriment of Java.
 
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
Hi,

So we can conclude that Java is a pure OO language +

it has the feature of having its primitive types in both

ways - object(Integer,etc..) as well as non-objects(int,etc.)

Am i right??

Regards
 
Ranch Hand
Posts: 657
Spring VI Editor Clojure
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator

So we can conclude that Java is a pure OO language +

it has the feature of having its primitive types in both

ways - object(Integer,etc..) as well as non-objects(int,etc.)

Am i right??


It's subject to your interpretation. The term "pure OO language" is overloaded.
 
author and iconoclast
Posts: 24208
47
Mac OS X Eclipse IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
We have this conversation several times each week. If you're interested in continuing it, please search Java in General (Beginner), Java in General (Intermediate), and Java in General (Advanced), and read every thread in which this has been discussed since JavaRanch was founded. If, after doing all that, you honestly feel you have something new to contribute, send me a PM, and I will reopen this thread.
    Bookmark Topic Watch Topic
  • New Topic