Why Java is not purely object oriented?
Answers were Sorted based on User's Feedback
Answer / kiran kumar maharana
Java is not purely object oriented language because following
1)primitive datatypes are not the object type
2)static concept is not the part of class & object
3)All user defined types are not objects
4) All operations are performed by sending messages to objects
Is This Answer Correct ? | 4 Yes | 0 No |
Answer / ved
java is not pure object oriented language becoz of two main
reasons
1. java uses primitive data type. means every thing in java
is not the object and classes.
2. it supports static variables that are not the part of
classes and object.
these are two main reason that's why java is not pure
object oriented languge.
Is This Answer Correct ? | 5 Yes | 2 No |
Answer / abhijit sawant
I think java is not purely object oriented bcoz there are
some concepts which are not implemented in java like
multiple inheritance.
we can implement it by using the concept interface.
we cannot implement it directly so the java is not purely
object oriented.
Is This Answer Correct ? | 2 Yes | 0 No |
Answer / babu
java is not pure object oriented language because of two main
reasons,
1. java uses primitive data type. means every thing in java
is not the object and classes.
2. it supports static variables that are not the part of
classes and object.
these are two main reason that's why java is not pure
object oriented languge.
Is This Answer Correct ? | 2 Yes | 0 No |
Answer / nilesh b
As in C++ and some other object-oriented languages,
variables of Java's primitive data types are not objects.
Values of primitive types are either stored directly in
fields (for objects) or on the stack (for methods) rather
than on the heap, as commonly true for objects . This was a
conscious decision by Java's designers for performance
reasons. Because of this, Java was not considered to be a
pure object-oriented programming language.
Is This Answer Correct ? | 2 Yes | 0 No |
Answer / ravikiran
Because it doenn't support multiple inheritence in a direct
manner,Even though interfaces used for the purpose
And it doesn't support pointers
Is This Answer Correct ? | 7 Yes | 6 No |
Answer / edward sudhaharchennai
Even though we cannot write parogramme in java without
classes and objects , Still java allows to use primitive
types. So i can say java is not 100% object oriented....
Is This Answer Correct ? | 4 Yes | 3 No |
Answer / kamal kankarwal
We can call a lang OOP if it supports three characteristics
1. Encapsulation
2. Polymorphism
3. Inheritence
For calling a lang pure(or 100%)OOP all the component must
be in OOP framework.
But in Java data types such as int char float double etc
are also defined as both in Object and Premitive form.
eg. int i=5;// Violates Pure OOP framework
Integer in=new Integer(5);
However we can not call it Pure rather it support OOP
framework in a TRUE sence. Hence we can call it TRUE OOP
lang.
Is This Answer Correct ? | 2 Yes | 1 No |
Answer / sujith
Java is not purely objected oriented because it does not support multiple inheritance and operative overloading. But multiple inheritance is possible with the help of interfaces.
Is This Answer Correct ? | 1 Yes | 0 No |
Answer / dhiru
Java is not a puerly object oriented language because in
java program also run without main
Is This Answer Correct ? | 1 Yes | 0 No |
Explain difference between final, finally and finalize?
Explain the JDB in depth & command line.
Why collection is called framework in java?
Why chararray() is preferred over string to store the password?
Can you inherit a constructor java?
What is the statements?
How to make object serializable in java?
I am a fresher and know core java, c languge, html, css etc if I am illegible for any job then send it on my email tatranakshay276@gmail.com
How to perform binary search in java?
What is unicode?
How do you represent a space in regex java?
What are different types of states exist for a thread?