aspose file tools
The moose likes Beginning Java and the fly likes Java isnt Pure object oriented Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Reply locked New topic
Author

Java isnt Pure object oriented

A Kumar
Ranch Hand

Joined: Jul 04, 2004
Posts: 973
Hi,

I have heard that java isnt pure object oriented

Why is that so???

Tx
Michael Ernest
High Plains Drifter
Sheriff

Joined: Oct 25, 2000
Posts: 7292

Because it supports types that are not pure objects, such as the eight primitive types (boolean, byte, char, short, int, long, float, double).


Make visible what, without you, might perhaps never have been seen.
- Robert Bresson
A Kumar
Ranch Hand

Joined: Jul 04, 2004
Posts: 973
Thank you..

Is that the only reason..??


Regards
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

Why does it worry you?


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
Rick Beaver
Ranch Hand

Joined: Dec 14, 2004
Posts: 464
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.


ph34r my 133t j4v4 h4><0r1ng sk177z
manogna edintipal
Ranch Hand

Joined: Aug 16, 2005
Posts: 51
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


Sanju
Steve Morrow
Ranch Hand

Joined: May 22, 2003
Posts: 657

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
Marshal

Joined: Jul 08, 2003
Posts: 24040
    
  13

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.


[Jess in Action][AskingGoodQuestions]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Java isnt Pure object oriented
 
Similar Threads
is java object oriented
java -A pure OOPS?
about java oops
Is java Pure Object Oriented Programing language?
object oriented