Tuesday 24 July 2012

Why is java called "purely" object oriented language ?

Solution : -
               Java is NOT a purely Object Oriented Language because given following step below : -
             
      1. Not all pre-defined types in Java (primitives) are objects.
                   2. Static variables can be used without creating an instance of an object.
                   3. Overriding a static method / variable isn’t possible.
                   4. Operations on objects should only be done through methods
                       exposed by the object which   isn’t entirely true in Java .
                      Example : - “Foo” + “Bar”

No comments:

Post a Comment

What is Map Collection?

A map collection refers to a set of maps that are compiled and organized for a specific purpose, such as research, education, or preservatio...