java is not a pure object oriented .its partially object
oriented.object oriented means every thing should be used in
terms of objects.in java we use datatypes with out creating
any objects.using java we can do fully object oriented
programming.so its a partially object oriented.
Perfect answer by Swapna. Java is not pure object oriented.
Data types are still not objects except String. I think the
only pure object oriented language still is smalltalk,
though i havent explored much with c#.
Java is purely OOPL.primitives are simple datatypes in java
all the collections classes are uses wrapper class only not
a simple data types In all the applications we uses wrapper
class only not a primitives.we use primitives only for a
learning purpose and java supports native language that so
primitives still lives in java
According to oopl specification a language which considers
each and every component as an object.
1.But in java primitive datatypes are there so we can
consider java as not fullfledged oopl.
2.all of u guys plz think that java also providing wrapper
classes for each primitive,so can't it be full object
orientation(plz respond me on this point)
create a class complex having real and imaginary part of a
complex no. as a data member. overload the binary
operators(+,- and *) to perform the operations on complex
no. objects. overload binary operator using friend function.