Using Stored Procedures, Scrum Master, Scrum Team, J2EE Development, Code Refactoring, Modular programming, When to Interfaces or Abstract classes, Pure Object Oriented, Java development, How to communicate to senior management of the company effectively, Scrum Product Owner
Tuesday, May 18, 2010
Java is not a Pure Object Oriented Language
Theoretical a Pure Object Oriented Language must contains all entities as in the form of Object. There could be two categories of OOPL :
1) Hybrid OO languages :
Hybrid languages are based on some non-OO model that has been enhanced with OO concepts. e.g. C++, ancestor was C, may be more...
2) Pure OO languages
Pure OO languages are based entirely on OO principles; Smalltalk, Java, and Simula are pure OO languages.
But Due to following reasons Java can't be considered as Pure OOPL:
1) Java violates principle "Everything must be Object". Java has primitive types int, long etc.
2) static works on class level.
3) Multiple inheritance is not supported.
4) Operator overloading is not supported.
BTW Java never claimed to be "Pure OOPL".
Subscribe to:
Post Comments (Atom)
Interesting!!
ReplyDeleteThank you for sharing this informative article.
hi,
ReplyDeleteCan you tell me what is difference between TYPE_SCROLL_INSENSITIVE and TYPE_SCROLL_SENSITIVE
ResultSet.
@Jay : Will write something very soon..
ReplyDelete