GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Interview Questions  >  J2EE  >  Core Java
Go To First  |  Previous Question  |  Next Question 
 Core Java  |  Question 223 of 502    Print  
why java is not 100% oops

  
Total Answers and Comments: 16 Last Update: October 27, 2009     Asked by: mihir 
  
 Sponsored Links

 
 Best Rated Answer
Submitted by: rahulshevkar
 

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.



Above answer was rated as good by the following members:
tanzeem khan, sandeep_14185
  Sorting Options  
  Page 1 of 2   « First    1    2    >     Last »  
May 01, 2006 16:23:29   #1  
uafshahid Member Since: April 2006   Contribution: 9    

RE: why java is not 100% oops
Java is surely pure/100 OOPS.
 
Is this answer useful? Yes | NoAnswer is useful 0   Answer is not useful 2Overall Rating: -2    
May 02, 2006 01:28:08   #2  
JavaStudent Member Since: March 2006   Contribution: 4    

RE: why java is not 100% oops

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.


 
Is this answer useful? Yes | NoAnswer is useful 0   Answer is not useful 1Overall Rating: -1    
May 04, 2006 02:53:52   #3  
rahulshevkar Member Since: April 2006   Contribution: 6    

RE: why java is not 100% oops

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.


 
Is this answer useful? Yes | NoAnswer is useful 2   Answer is not useful 0Overall Rating: +2    
May 04, 2006 10:10:02   #4  
Srinivasa Chary        

RE: why java is not 100% oops

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


 
Is this answer useful? Yes | No
May 05, 2006 01:59:22   #5  
Amarnath        

RE: why java is not 100% oops

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


 
Is this answer useful? Yes | NoAnswer is useful 0   Answer is not useful 1Overall Rating: -1    
May 05, 2006 15:56:33   #6  
uafshahid Member Since: April 2006   Contribution: 9    

RE: why java is not 100% oops

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.


 
Is this answer useful? Yes | No
May 09, 2006 02:13:48   #7  
ganesh kumar        

RE: why java is not 100% oops

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


 
Is this answer useful? Yes | No
May 09, 2006 04:49:11   #8  
satheesh kumar. sriramaneni        

RE: why java is not 100% oops

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.


 
Is this answer useful? Yes | No
May 14, 2006 11:54:40   #9  
Lokesh        

RE: why java is not 100% oops

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.


 
Is this answer useful? Yes | No
May 19, 2006 08:31:20   #10  
Devendra Tiwari        

RE: why java is not 100% oops

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.)


 
Is this answer useful? Yes | No
  Page 1 of 2   « First    1    2    >     Last »  


 
Go To Top


 Sponsored Links

 
About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape