• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Is java Pure Object Oriented Programing language?

 
santhosh.R gowda
Ranch Hand
Posts: 296
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Friends?

Is java pure object oriented programing language ? if so please justify it
 
Maneesh Godbole
Saloon Keeper
Posts: 10971
11
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
 
Mike Simmons
Ranch Hand
Posts: 3028
10
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No.

Fortunately, we're only asked to justify it if the answer is yes.
 
santhosh.R gowda
Ranch Hand
Posts: 296
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Maneesh Godbole wrote:Santosh,
Please read this
http://faq.javaranch.com/java/DoYourOwnHomework


hi Maneesh please don't mind for this question im asking i had read so many books in some books they are telling its pure in some they are telling not pure.....for pure they will give justification like ... in java we will do with in class itself.. for not pure they will give justification like this pure oop means every thing must be defined in terms of object but in java we are declaring static fields which are not defined through objects..... and in some articals they are telling Simula is the only language which is pure OOP ...please justify which one is correct..?
 
santhosh.R gowda
Ranch Hand
Posts: 296
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Mike Simmons wrote:No.

Fortunately, we're only asked to justify it if the answer is yes.

Please provide justification for not pure..?
 
Sujai Kaarthik
Ranch Hand
Posts: 162
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Java is not a pure OOP language

The qualities that have to be satisfied to be a pure one are:

1. Encapsulation
2. Inheritance
3. Polymorphism
4. All pre-defined types should be objects
5. All operations are done through objects
6. All user defined types should be objects

In Java's case, it supports primitive data types such as int, byte, etc., which are not objects
 
Ulf Dittmer
Rancher
Pie
Posts: 42966
73
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Note that there's no single, generally agreed upon, definition of what a "pure OO language" is. So while most people would say that Java is not "pure OO", the answer may still not fly with the person who asked it.
 
Mike Simmons
Ranch Hand
Posts: 3028
10
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
santhosh.R gowda wrote:Please provide justification for not pure..?

Well, now you're changing the question. That hardly seems fair. ;)

But Sujai's post gives one possible answer. Probably the most common answer to this question. And more importantly I agree with Ulf that there's no one definition of what constitutes a "pure" OO language anyway. Why is it important that a language be "pure" OO?
 
Mike Simmons
Ranch Hand
Posts: 3028
10
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
And if you use the Search function to look for "put object oriented", or even just "pure", in these forums, you will probably find more repetitions of this question and these answers than you could ever have imagined.
 
santhosh.R gowda
Ranch Hand
Posts: 296
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks for all,
finally java is not pure object oriented programing language
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic