aspose file tools*
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Does Java support 100% oop's ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Does Java support 100% oop Watch "Does Java support 100% oop New topic

Does Java support 100% oop's ?

jebastian, and ponsekar

Joined: Jul 02, 2000
Posts: 1
In C++ main oop's concept is Mulitple inheritance.
since java doesn't support multiple inheritance.what i am thinking java is not a 100% oop's language.any way i know
through interface you can implement more than one interface.
what is the use of interface,only we can have method declaration(
ie. abstract method) inside the interface.i am very much confussing about oop's.clarify my doubt.
Tony Alicea

Joined: Jan 30, 2000
Posts: 3222
Is multiple inheritance necessary to be OO? I think inheritance is, but multiple only adds complexity and I think it was a good idea to keep it out of Java.

Tony Alicea
Senior Java Web Application Developer, SCPJ2, SCWCD
William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 12769
Multiple inheritance is a snare and a delusion. Java's extensive use of interfaces is greatly to be preferred. Study the use of interfaces in the standard library packages to see how elegant it can be.
Ranch Hand

Joined: May 31, 2000
Posts: 116
One reason why Java is not 100% object oriented is existence of primitive types. Primitive types are not objects. Wrapper classes are different from primitive types.
Ranch Hand

Joined: May 29, 2000
Posts: 45
Ah 0.02INR !
It's very easy to teach & preach OOAD but to practice....hmm. IMO, the very fact that one thinks about Multiple Inheritance - is making a mistake in OO thinking. CLEAN OO thinking is very hard to come by. Human mind is so powerful, it always finds the shortest path to the goal-- which, in-fact may not be the REAL OO thinking, but then's a paradox!
My point is- JAVA supports ALL the OO concepts that ONE would like to implement. Unless there are clean 'contracts' through Interfaces, you are NOT implementing 100% OOD.
I like this debate. any comments Tony?
Gopinath Rajgopal
Ranch Hand

Joined: Jun 26, 2000
Posts: 31
i too am of the opinion that java may not be 100% OOP. My contention is with the "static main()" method and the primitive data types...but more than primitive data types, a single static main method being the point of entry and controlling the whole program makes me uncomfortable when i have to accept the java is 100% OOP...
Adrian Ferreira
Ranch Hand

Joined: May 29, 2000
Posts: 118
Java interface is a very smart concept to avoid conflicts when using multiple inheritance, what is not necessary in an OOL. Smalltalk does not have multiple inheritance too as I know, even if it has it today, it is crearly not necessary.
What meke some Java code not OO is static method bad useness. Many C programmers like to use static methods as they were functions in C language. IMO, static methods would just be used as class methods like those in Math class. To encapsulate code, we need think about polimorphism.
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: Does Java support 100% oop's ?