Bookmark Topic Watch Topic
  • New Topic

Java isnt Pure object oriented  RSS feed

 
A Kumar
Ranch Hand
Posts: 980
  • Mark post as helpful
  • send pies
  • Report post to moderator
Hi,

I have heard that java isnt pure object oriented

Why is that so???

Tx
 
Michael Ernest
High Plains Drifter
Sheriff
Posts: 7292
Netbeans IDE VI Editor
  • Mark post as helpful
  • send pies
  • 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: 980
  • Mark post as helpful
  • send pies
  • Report post to moderator
Thank you..

Is that the only reason..??


Regards
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Report post to moderator
Why does it worry you?
 
Rick Beaver
Ranch Hand
Posts: 464
  • Mark post as helpful
  • send pies
  • 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.
 
manogna edintipal
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
  • 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
 
Steve Morrow
Ranch Hand
Posts: 657
Clojure Spring VI Editor
  • Mark post as helpful
  • send pies
  • 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.
 
Ernest Friedman-Hill
author and iconoclast
Sheriff
Posts: 24217
38
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • 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
Boost this thread!