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
Joined: Apr 06, 2009
Posts: 296
posted
0
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
Joined: Dec 29, 2008
Posts: 162
posted
0
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
The greater danger for most of us is not that our aim is too high and we miss it, but that it is too low and we reach it
Ulf Dittmer
Marshal
Joined: Mar 22, 2005
Posts: 35241
7
posted
0
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.
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
Joined: Mar 05, 2008
Posts: 2782
2
posted
0
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
Joined: Apr 06, 2009
Posts: 296
posted
0
thanks for all,
finally java is not pure object oriented programing language