File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes object oriented Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "object oriented" Watch "object oriented" New topic

object oriented

Puneet N Vyas
Ranch Hand

Joined: Sep 20, 2007
Posts: 61
what is the meaning of pure object oriented language,how we decide that a language is pure object oriented language,can we say java is pure object oriented language,if yes than how,if no then why??
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 15093

The question "Is Java a pure object oriented language?" is asked frequently here on JavaRanch. To answer this question, you first need to know what "pure object oriented" means. There is no exact definition for that term, so the question cannot be answered with exact precision.

OO purists would not consider Java a purely object oriented language, because in Java not everything is an object. There are for example primitive types which are not objects. In other programming languages, such as Ruby, everything is an object, so you could say that Ruby is more purely OO than Java.

Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 8 API documentation
Ilja Preuss

Joined: Jul 11, 2001
Posts: 14112
I'd say that Java isn't as OO as other languages, such as Ruby or Smalltalk, but that the term "purely OO" has as much meaning as "purely hot" in cooking.

As an aside, you can easily write none-OO programs in OO languages; and (not as easily) OO programs in non-OO languages. With other words, OO languages just make it easier to write OO programs.

The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
I agree. Here's the link:
subject: object oriented
jQuery in Action, 3rd edition