CoolInterview.com - World's Largest Collection of Interview Questions
Send Free SMS
 Interview Questions  
 Our Services  


INTERVIEW QUESTIONS J2EE JAVA DETAILS
Question :
Why java is not pure object oriented language?

Posted by: sohan on 1/11/2008

Contact sohan  Contact sohan
Category Java Interview Questions
Rating (0.0) By 0 users
Added on 1/11/2008
Views 2292
Rate it!
Answers:

For a pure object oriented language,there should be 6 features available with it.They are:-
1.Encapsulation/Information Hiding
2.Inheritance
3.Polymorphisms/Dynamic Binding
4.All pre-defined types should be Objects
5.All operations performed by sending messages to Objects
6.All user-defined types are Objects
But in java,
features 4 & 5 are lacking.
That'swhy it is not 100%pure OO..



 Posted by: mrdevi    

Contact mrdevi  Contact mrdevi

Because it contains eight primitive data types,these data types cannot be used as objects.



 Posted by: chandrashekar    

Contact chandrashekar  Contact chandrashekar

Since Java is platform independent i.e. can be run in any platform so it is not pure object oriented language.



 Posted by: mangai    

Contact mangai  Contact mangai

Yes java is object oriented language,because it supports run time polymorphisms and dynamic binding.As most of the concepts achieve run time polymorphisms and dynamic binding.thus java is object oriented language.



 Posted by: lipi     

Contact lipi   Contact lipi

Object oriented paradigm of programming says that everything in a programming world should felt like object mean :- "Abstract and Encapsulated" The paradigm is not completely satisfied by Java. Some of the feature that make such violation are 1. Existence of primitives which are manipulated in ordinary style .
2. Existence of mathematical operator handled also not like objects. These two essential characteristics make Java somewhat what is the question. But here again Java is big winner to make presence of wrapper classes to wrap up this difficulty or adaption. Moreover in Java 1.5 you will feel more free because of auto-boxing feature that make auto conversion of object to primitive and primitive to object.



 Posted by: ankit tater    

Contact ankit tater  Contact ankit tater

Java is not a fully object oriented language because it does not support multiple inheritance directly.But it does so by using the concept of interfaces.

A language is said to be fully object oriented if it supports classes,objects,inheritance and polymorphisms.For example C++ supports full fledged feature of inheritance and all the types of inheritances(single,multilevel,multiple,hierarchical and multi path inheritances), and if we take the polymorphisms C++ supports static binding and operator overloading which come under static polymorphisms where as Java does not support operator overloading.



 Posted by: jyoti    

Contact jyoti  Contact jyoti

Because operator overloading does not in java.



 Posted by: jyoti agarwal    

Contact jyoti agarwal  Contact jyoti agarwal

Because it doesn't support multiple inheritance.



 Posted by: Anitha    

Contact Anitha  Contact Anitha

Java does not support multiple inheritance.Though it supports through interfaces and also Java does not support meta classes that is classes above classes so Java is not a purely object oriented language.



 Posted by: stalin    

Contact stalin  Contact stalin

Java does not support operator overloading.



 Posted by: SaravananRamamoorthy    

Contact SaravananRamamoorthy  Contact SaravananRamamoorthy

Java is not fully object oriented language because it does not support the multiple inheritance though it can be implemented using interfaces.



 Posted by: Sudhansu Sekhar Behera    

Contact Sudhansu Sekhar Behera  Contact Sudhansu Sekhar Behera

Because All of them consider as "OBJECTS".



 Posted by: Perumal    

Contact Perumal  Contact Perumal

becoz,pure oop lang. support pointer, but java doesn't support pointer so it's not a pure oop lang.



 Posted by: vicky    

Contact vicky  Contact vicky

Java is purely objected oriented programming language.Why because in for class we can create at least one object.Object is the super class of all classes in Java.In oops we can deal with classes and objects .so this is the reason for Java is purely oops language.



 Posted by: TANUGULA PRADEEP KUMAR    

Contact TANUGULA PRADEEP KUMAR  Contact TANUGULA PRADEEP KUMAR

Primitive Data Types :
byte,shot,int,long,float,double,char,boolean.
Due to dependencies of above data types we say that java is not pure object oriented programming language



 Posted by: vijaya krishna    

Contact vijaya krishna  Contact vijaya krishna

java is not pure object oriented language, because in object oriented concept every method is called throw its objects.In java main()is also a method, but without creating object we accessing main method...
by using the key word static we can access any method without creating object...so java its not pure object oriented language.



 Posted by: ambiga    

Contact ambiga  Contact ambiga


If you have the better answer, then send it to us. We will display your answer after the approval.
Name :*
Email Id :*
Answer :*
Verification Code Code Image - Please contact webmaster if you have problems seeing this image code Not readable? Load New Code
Process Verification  Enter the above shown code:*
Inform me about updated answers to this question

   
Related Questions
View Answer
what is the definition of arraylist? plz write in brief.
View Answer
1)What are the actual functions of JVM?
2)When to use a class and when to use
an Abstract class?
3)what is the use of constructors other than creation of objects?
4)when to use constructors?
5)when to use Interface?
6)why java does not support pointers?
7)why multiple inheritance is not possible in java without using Interfaces?
View Answer
Why we have used to in main method in JAVA this words
1)public
2)static
3)void
4)main
5)(String args[])
View Answer
Addition of two numbers using Bitwise operators.
Reading An 2D array using single for loop
View Answer
What is UML patterns?give me clear explanation
View Answer
While developing one in JSP page we are sending request to Struts frame work.If we click two times submit button then First time only it should accept request and second time should reject that request in struts frame work.

How we can do that in controller itself...I am waiting for your Response...

View Answer
Can I execute or call one applet from another applet? If so then how??? Please Reply me...
Thanks
View Answer
what is method declaration,method attributes,method modifiers and parameters
View Answer
System Class is Used to Output text onto the Screen?
it True or False
View Answer
what is the first statement in construtor?
View Answer

Please Note: We keep on updating better answers to this site. Subscribe to our newsletter to get notified when better answer is posted.

Notify me when better answer is posted!
Email:

View ALL Java Interview Questions

User Options
Sponsored Links


Copyright ©2003-2010 CoolInterview.com, All Rights Reserved.
Privacy Policy | Terms and Conditions
Page URL: http://www.coolinterview.com/interview/12727/default.asp?cachecommand=bypass


Download Yahoo Messenger | Placement Papers| FREE SMS | ASP .Net Tutorial | Web Hosting | Free SMS | Dedicated Servers | Joke of the Day

0.75