Is Java fully object-oriented?

why java is not pure object oriented language?

  • I think java is pure object oriented, but in real it is not. But i dont know why java is not pure object oriented language, please help me to find out the reason.

  • Answer:

    This is a homework question, right? Primitive types, that's why. For instance try this: int i = 42; System.err.println(i.toString());

Pushpendra Kuntal at Stack Overflow Visit the source

Was this solution helpful to you?

Other answers

The usual objection is that Java is not "purely" OO because it has primitive types (int, double, etc.), which are not objects.

JB Nizet

To make proof by contradiction: Java has int, and int, like all primitive types in Java, is not an Object. There are possibly more reasons, though.

Waldheinz

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.