• Post Reply Bookmark Topic Watch Topic
  • New Topic

Why is java not 100% pure oops ?  RSS feed

 
Saurabh Agrawal
Ranch Hand
Posts: 244
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi friends,
Well it is always an ambigious question so i wanna seek ur opinion abt it .Please help me out and if possible give me all possible reasons that why its not a 100 % pure oop though we can implement object orinted concepts in java in one way or the other ??
Why is java not 100% pure oops?
 
Manish Hatwalne
Ranch Hand
Posts: 2596
Android Firefox Browser Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
1) Java allows primitives!
- Manish
 
Cindy Glass
"The Hood"
Sheriff
Posts: 8521
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In addition to the primitives which are not OO, there are some aspects of the way that array was implemented that is not pure OO.
This was done in the interest of efficiency and performance.
 
Stan James
(instanceof Sidekick)
Ranch Hand
Posts: 8791
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Besides which there is some general disagreement on what "pure OO" would mean. For example, Alan Kay often says "C++ is not object oriented. I can say that because I made up the term 'object oriented' and C++ is not what I had in mind." You can guess there are those who disagree. With anything.
For my 2 cents, designing a langauge where I can't put an int in a HashMap was a huge mistake, worth a good 75.3 points off the "pure oo" grade - on an unspecified scale.
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!