hello
is java is a pure object oriented programming language ?
if not why ?
can any one explain briefly please.
Printable View
hello
is java is a pure object oriented programming language ?
if not why ?
can any one explain briefly please.
Java allows static variables, that can be accessed without objects.
so its not 100% object oriented.
can any one explain by taking the example of primitive datatypes ?
[QUOTE=samineni6;12327]hello
is java is a pure object oriented programming language ?
if not why ?
can any one explain briefly please.[/QUOTE]
java claims to be a pure object oriented programming lang. but,actually it doesn't supports all features of oops.
For example Object-Oriented language should have: All pre-defined types are Objects but by its inclusion of "basic" types that are not objects, it fails to meet this quality
so, java is not a pure object oriented language .It is a hybrid language
A "hybrid" language may support some of the qualities of oops, but not all.
ok i'm givining oop's concepts also here
1.Encapsulation/Information Hiding
2.Inheritance
3.Polymorphism/Dynamic Binding
4.All pre-defined types are Objects
5.All operations performed by sending messages to Objects
6.All user-defined types are Objects
Among all these java doesn't supports 4th and 5th concepts of oops
[QUOTE=Barbie;12329]Java allows static variables, that can be accessed without objects.
so its not 100% object oriented.[/QUOTE]
Also multiple inheritance is not implemented in java.
also the declaration of variables, i.e primitive data types are used(which is other reason it is not object oriented THOUGH Wrapper classes are used to solve this issue)
I hop u r getting me (w.r.t primitive data types)
Java is not a pure object oriented language.
i can say 99% object oriented programming langauge .
because it supports primitive data types .
like int ,long , double... etc