Welcome to MY Site
                                                               Created by Jeyakumar
Blog
Site menu

Login form
Search

Calendar
«  September 2009  »
SuMoTuWeThFrSa
  12345
6789101112
13141516171819
20212223242526
27282930

Entries archive

Site friends

Statistics

Total online: 1
Guests: 1
Users: 0

Welcome, Guest · RSS 2024-04-19, 4:35 PM

Main » 2009 » September » 29 » why java is not 100% object oriented language??
4:58 PM
why java is not 100% object oriented language??

Java is not a pure Object oriented language but so called a Hybrid language.

For any language to be pure object oriented it must follow these 6 points strictly...

1) It must have full support for Encapsualtion and Abstraction

2) It must support Inheritance

3) It must support Polymorphism

4) All predefined types must be Objects

5) All user defined types must be Objects

6) Lastly all operations performed on objects must be only through methods exposed at the objects.

Now java supports 1 2 3 & 5 but fails to support 4 & 6.

In java we have some predefined types as non-objects (primitive types). Although we have wrapper classes for the same but a Pure OOL can't have anything other than Objects strictly.

And regarding point 6 In java we can have communicate with objects without calling their methods for e.g. using arithmatic operators.

String s1 Ashish + A ;

These 2 points stops java from being a pure OOL.

Views: 547 | Added by: rsj | Rating: 0.0/0
Total comments: 0
Name *:
Email *:
Code *:
Copyright © 2024
$POWERED_BY JeyaKumar$