Why Java is not purely object oriented?
Answer Posted / 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 |
Post New Answer View All Answers
How to create com object in Java?
What is the purpose of using java.lang.class class?
What does localhost mean?
What differences exist between iterator and listiterator?
Is age discrete or continuous?
what is server side caching?
Can a constructor be protected?
What are use cases?
Can we override private constructor in java?
When can we say that threads are not lightweight process in java?
Define how can we find the actual size of an object on the heap?
Difference between ‘>>’ and ‘>>>’ operators in java?
Describe 2 different ways to concatenate two strings.
What is java algorithm?
What are design patterns and please explain?