All the teachers have always taught us that Java is a purely OOP language.Even I have posted it in my article of OOPS(that's because in that article I wanted to tell you about OOP's and not about Java).BUT this is one of the biggest CONCEPTUAL BLUNDERS that each and every student makes.
As a matter of fact Java is a "partly OOP language".Java can be CONSIDERED a purely OOP language "AS COMPARED" to languages like C and C++.
Let me explain why.
We have always been taught that in a purely OOP language always objects have to be created for each and everything.All functions,method,operands need to be called via objects.BUT have you ever thought that "How can Java be a purely OOP language as it supports the use of primitive data type(int,long,byte etc) ?".We never use any object to use these data types.This aspect of Java violates the rule of a purely OOP language.Hence Java cannot be called a purely OOP language.
The only language at present which can be called a purely OOP language is "smalltalk".
There are a couple of minute aspects of java which violate the rules of OOP.For detailed information I would like you to visit:
http://en.allexperts.com/q/Java-1046/java-pure-object-oriented.htm
No comments:
Post a Comment