Why java is not 100% oops

Showing Answers 1 - 29 of 29 Answers

java has all the oops concepts satisfied. (i.e, abstract data types, encapsulation, polymorphism, and inheritance). but still people say that java is not purely oop bcos it has primitive data types. but also java provides wrapper classes to use primitive data types as objects. so Java is a purely object oriented.

  Was this answer useful?  Yes

For 100 % oops

we need 100% support in following things
1) inheritance 2) polymorphism 3) encapsulation

java support above three consepts but in "inheritance" java does not support multiple inheritance.

so that why java is not a 100% oops language.

now ? java not support multiple inheritance support. it is due to
"Deadly Diamond of Death" problem. To avoid this problem java use interface.

Srinivasa Chary

  • May 4th, 2006
 

hai

    java is not 100% oops is just because of all the codes are not included in class for example a jsp code is included in html where we donot have class so java is not 100% oops

  Was this answer useful?  Yes

Amarnath

  • May 5th, 2006
 

Hi,

Java is fully obeject oriented language, but still If you take int, float, char are not the objects...these are the primitive data types.

Thats why some people saying that its not fully oops

  Was this answer useful?  Yes

uafshahid

  • May 5th, 2006
 

Dear Actually Jsp itself based on special java classes

called servlets. study in depth will show u that each Jsp tag will be converted

into method of servlets like Declaration tag converts to init() method of servlet, Scriptlet is alternative of service method and page directives are alternatives of import statements and jsp itself will be converted into a servlet

after execution. and you can see that every servlet of every jsp page

by exploring WEB-INF and then classes folder.

This perception is wrong that java is not pure object oriented because of jsp.

  Was this answer useful?  Yes

ganesh kumar

  • May 9th, 2006
 

java is pure 100% object oriented programming lanaugage if excluding applets.

  Was this answer useful?  Yes

satheesh kumar. sriramaneni

  • May 9th, 2006
 

Java is not 100% oops language. Means 99.9% it's a pure oops language.

The reason is ,actually each and every thing will be treated as a object in java.But, here we can use datatypes.With the help of wrapper classes we can access datatypes.So, java is not follow the oops concept.So, it's a 99.9% only pure oops language.

  Was this answer useful?  Yes

Lokesh

  • May 14th, 2006
 

Java is object oriented program but it is not a 100% oops because still it supports for basic data types. It means they are not objects.

i,e These are all not objects(int, float). We will not use 'new' operator to create these data types. Hence, Java is not purely object oriented programming language.

  Was this answer useful?  Yes

Devendra Tiwari

  • May 19th, 2006
 

most of you people are getting the right point. But there is one more reason.

i.e. Every operation performed should be an message to object

by this i mean if we want to perform summation of x and y then as java support z=x+y where as a pure object oriented way to perform the task is

Obj.z=Obj.sum(x,y);

the other reason is all those primitive datatypes(int, float, char etc.) 

  Was this answer useful?  Yes

Shankar. S

  • Sep 28th, 2006
 

Hi,

 

Java is not Pure Object Oriented Programming Language. Pure oops language means everything should be in Object type only. But still java has int, char, float etc., these all are primitive data.  Everyone knows that Java is OOPs language. But not pure. Whenever we say that pure OOPs, it has object type only that means each and everything should act as an object only.

  Was this answer useful?  Yes

Sam

  • Feb 6th, 2007
 

Dear friends, few facts about why java is not based on 100% OOPS Concept,

1. Use of primitive datatypes i.e., int, float etc. which aren't objects but java still suports it.

2. According to OOP principle every variable in the class should be accessed only by using its object of the class. But by declaring a variable in the class as 'static', it is possible that the variable can be accessed without actually creating the object of the class.

Please let us all know if there are any more....

Regards
Sam

  Was this answer useful?  Yes

Ramajayam

  • Sep 10th, 2008
 

Java does not support multi-level inheritance directly. So It is not a 100% true OOPS.

But it acheives it through the interfaces

  Was this answer useful?  Yes

sahit

  • Oct 27th, 2009
 

Java does not support multiple inheritance as well as operator overloading, so we can say that Java is not completly supporting OOPs.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions