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


Please Help Members By Posting Answers For Below Questions

What is mean by encoding?

847


What is the r character?

828


what methods would you overwrite in java.lang.object class?

792


Why do we need singleton?

768


What is Java Annotations?

784


What are exception handling keywords in java?

835


Is age discrete or continuous?

910


What if I write static public void instead of public static void in java?

858


What is the difference between serial and throughput garbage collector?

826


How do you remove spaces in java?

797


Explain why wait(), notify() and notifyall() methods are in object class rather than in the reading class?

791


What is the use of parse function in java?

743


What is the most important feature of java? What is an interface?

793


What does jenkins do?

703


You can create a string object as string str = “abc”; why cant a button object be created as button bt = “abc”;? Explain

769